Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / Profile / ProfileProvider.cs / 1 / ProfileProvider.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * ProfileProvider * * Copyright (c) 2002 Microsoft Corporation */ namespace System.Web.Profile { using System.Security.Principal; using System.Security.Permissions; using System.Collections; using System.Collections.Specialized; using System.Web.Configuration; using System.Web.Util; using System.Web.Security; using System.Web.Compilation; using System.Configuration; using System.Configuration.Provider; using System.Reflection; using System.CodeDom; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public abstract class ProfileProvider : SettingsProvider { public abstract int DeleteProfiles (ProfileInfoCollection profiles); public abstract int DeleteProfiles (string[] usernames); public abstract int DeleteInactiveProfiles (ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate); public abstract int GetNumberOfInactiveProfiles (ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate); public abstract ProfileInfoCollection GetAllProfiles (ProfileAuthenticationOption authenticationOption, int pageIndex, int pageSize, out int totalRecords); public abstract ProfileInfoCollection GetAllInactiveProfiles (ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate, int pageIndex, int pageSize, out int totalRecords); public abstract ProfileInfoCollection FindProfilesByUserName (ProfileAuthenticationOption authenticationOption, string usernameToMatch, int pageIndex, int pageSize, out int totalRecords); public abstract ProfileInfoCollection FindInactiveProfilesByUserName(ProfileAuthenticationOption authenticationOption, string usernameToMatch, DateTime userInactiveSinceDate, int pageIndex, int pageSize, out int totalRecords); } [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ProfileProviderCollection : SettingsProviderCollection { public override void Add(ProviderBase provider) { if( provider == null ) { throw new ArgumentNullException( "provider" ); } if( !( provider is ProfileProvider ) ) { throw new ArgumentException(SR.GetString(SR.Provider_must_implement_type, typeof(ProfileProvider).ToString()), "provider"); } base.Add( provider ); } new public ProfileProvider this[string name] { get { return (ProfileProvider) base[name]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * ProfileProvider * * Copyright (c) 2002 Microsoft Corporation */ namespace System.Web.Profile { using System.Security.Principal; using System.Security.Permissions; using System.Collections; using System.Collections.Specialized; using System.Web.Configuration; using System.Web.Util; using System.Web.Security; using System.Web.Compilation; using System.Configuration; using System.Configuration.Provider; using System.Reflection; using System.CodeDom; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public abstract class ProfileProvider : SettingsProvider { public abstract int DeleteProfiles (ProfileInfoCollection profiles); public abstract int DeleteProfiles (string[] usernames); public abstract int DeleteInactiveProfiles (ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate); public abstract int GetNumberOfInactiveProfiles (ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate); public abstract ProfileInfoCollection GetAllProfiles (ProfileAuthenticationOption authenticationOption, int pageIndex, int pageSize, out int totalRecords); public abstract ProfileInfoCollection GetAllInactiveProfiles (ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate, int pageIndex, int pageSize, out int totalRecords); public abstract ProfileInfoCollection FindProfilesByUserName (ProfileAuthenticationOption authenticationOption, string usernameToMatch, int pageIndex, int pageSize, out int totalRecords); public abstract ProfileInfoCollection FindInactiveProfilesByUserName(ProfileAuthenticationOption authenticationOption, string usernameToMatch, DateTime userInactiveSinceDate, int pageIndex, int pageSize, out int totalRecords); } [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ProfileProviderCollection : SettingsProviderCollection { public override void Add(ProviderBase provider) { if( provider == null ) { throw new ArgumentNullException( "provider" ); } if( !( provider is ProfileProvider ) ) { throw new ArgumentException(SR.GetString(SR.Provider_must_implement_type, typeof(ProfileProvider).ToString()), "provider"); } base.Add( provider ); } new public ProfileProvider this[string name] { get { return (ProfileProvider) base[name]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ResizeGrip.cs
- DescendantQuery.cs
- CheckBoxPopupAdapter.cs
- WindowsListViewScroll.cs
- _Win32.cs
- WebPartEditorOkVerb.cs
- FileSystemEventArgs.cs
- ListViewAutomationPeer.cs
- LineInfo.cs
- AQNBuilder.cs
- ChtmlCalendarAdapter.cs
- SynchronizationContext.cs
- HttpRequest.cs
- WindowsTokenRoleProvider.cs
- ObjectViewEntityCollectionData.cs
- FileDataSourceCache.cs
- ModuleConfigurationInfo.cs
- CheckBoxList.cs
- ClientSettingsProvider.cs
- ToolboxBitmapAttribute.cs
- ConnectionPoint.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- ConnectionConsumerAttribute.cs
- ApplicationId.cs
- SecurityContext.cs
- FormViewInsertedEventArgs.cs
- PriorityQueue.cs
- PrintDialog.cs
- ClientSession.cs
- SqlConnectionString.cs
- DataGridViewHeaderCell.cs
- WebPartHeaderCloseVerb.cs
- Module.cs
- CollaborationHelperFunctions.cs
- PackageRelationshipCollection.cs
- _NtlmClient.cs
- SqlInternalConnection.cs
- DataGrid.cs
- TableLayout.cs
- TextTreeExtractElementUndoUnit.cs
- DebugInfo.cs
- PersonalizableTypeEntry.cs
- ValueType.cs
- ProcessHostFactoryHelper.cs
- NavigateEvent.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- DataKey.cs
- UserNameSecurityTokenProvider.cs
- Property.cs
- ClipboardData.cs
- ProfileProvider.cs
- _SafeNetHandles.cs
- RegexGroupCollection.cs
- Page.cs
- DebugController.cs
- SqlDataSourceCommandEventArgs.cs
- CompilationSection.cs
- XmlSequenceWriter.cs
- DbgCompiler.cs
- AutomationPatternInfo.cs
- odbcmetadatacollectionnames.cs
- XPathNodeList.cs
- CodeTryCatchFinallyStatement.cs
- VideoDrawing.cs
- ContentFilePart.cs
- Terminate.cs
- TextRangeBase.cs
- VectorAnimation.cs
- RemotingException.cs
- BroadcastEventHelper.cs
- Geometry3D.cs
- SmtpCommands.cs
- TCEAdapterGenerator.cs
- EntityContainerEntitySet.cs
- EtwTrace.cs
- StringUtil.cs
- DataGridViewCellPaintingEventArgs.cs
- XmlDownloadManager.cs
- Helpers.cs
- Evidence.cs
- XmlNamedNodeMap.cs
- COM2ColorConverter.cs
- FixedTextPointer.cs
- DoubleLinkList.cs
- PlanCompiler.cs
- WindowsRegion.cs
- MultilineStringConverter.cs
- ListDictionary.cs
- ExpandSegmentCollection.cs
- Queue.cs
- SafePointer.cs
- GeometryGroup.cs
- UrlUtility.cs
- ButtonDesigner.cs
- HttpResponseWrapper.cs
- PieceNameHelper.cs
- IntranetCredentialPolicy.cs
- BufferModesCollection.cs
- ObjectConverter.cs
- WeakReferenceKey.cs