Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Profile / ProfileProvider.cs / 1305376 / 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; 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); } 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; 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); } 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
- CommonRemoteMemoryBlock.cs
- SerialPinChanges.cs
- TableParaClient.cs
- EpmContentDeSerializer.cs
- MsmqOutputMessage.cs
- CallInfo.cs
- SafeMILHandle.cs
- ToolStripDropTargetManager.cs
- EntityDataSourceWrapper.cs
- XmlAnyAttributeAttribute.cs
- ConfigurationStrings.cs
- SafeSecurityHandles.cs
- ControlUtil.cs
- TreeNode.cs
- ZoomPercentageConverter.cs
- WebPartConnectionsEventArgs.cs
- JoinCqlBlock.cs
- XmlSchemaExternal.cs
- DrawListViewColumnHeaderEventArgs.cs
- TailPinnedEventArgs.cs
- KeyConstraint.cs
- remotingproxy.cs
- SignHashRequest.cs
- CompositeCollectionView.cs
- ImageConverter.cs
- ChineseLunisolarCalendar.cs
- VisualTreeFlattener.cs
- DataBoundControl.cs
- ProviderCollection.cs
- ArgumentNullException.cs
- Calendar.cs
- OuterGlowBitmapEffect.cs
- XmlHierarchicalEnumerable.cs
- TrackingMemoryStream.cs
- ModuleConfigurationInfo.cs
- Pen.cs
- sitestring.cs
- XmlDigitalSignatureProcessor.cs
- SHA512CryptoServiceProvider.cs
- HotSpotCollectionEditor.cs
- SystemNetworkInterface.cs
- TextElementCollection.cs
- Win32.cs
- SQLMembershipProvider.cs
- EventHandlersStore.cs
- ResourcesChangeInfo.cs
- COM2PropertyBuilderUITypeEditor.cs
- PipelineComponent.cs
- DataBoundControlHelper.cs
- Identity.cs
- ToolZoneDesigner.cs
- BroadcastEventHelper.cs
- RequestCacheManager.cs
- RegistryPermission.cs
- ListViewGroup.cs
- PageSettings.cs
- TabPageDesigner.cs
- WebPartTransformerCollection.cs
- MenuItemStyle.cs
- DbMetaDataCollectionNames.cs
- ChannelSinkStacks.cs
- _BufferOffsetSize.cs
- InputGestureCollection.cs
- DataListCommandEventArgs.cs
- TypeConstant.cs
- ColorBuilder.cs
- SuppressIldasmAttribute.cs
- SafeReadContext.cs
- DataPagerField.cs
- CharacterMetrics.cs
- OleStrCAMarshaler.cs
- VirtualPathProvider.cs
- _TimerThread.cs
- HttpCapabilitiesSectionHandler.cs
- WasAdminWrapper.cs
- AggregateNode.cs
- WebPartVerbsEventArgs.cs
- RegistryKey.cs
- SqlOuterApplyReducer.cs
- CompilationRelaxations.cs
- DbParameterCollectionHelper.cs
- MiniModule.cs
- Configuration.cs
- SByte.cs
- ControlValuePropertyAttribute.cs
- ScriptingJsonSerializationSection.cs
- XmlDataImplementation.cs
- OSFeature.cs
- ExpandButtonVisibilityConverter.cs
- Sequence.cs
- MessageQueueException.cs
- ListViewDesigner.cs
- FixedSOMGroup.cs
- CleanUpVirtualizedItemEventArgs.cs
- QueryBranchOp.cs
- SynchronizationContext.cs
- Sorting.cs
- LinkTarget.cs
- Hex.cs
- MediaElementAutomationPeer.cs