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
- HttpCapabilitiesSectionHandler.cs
- _CookieModule.cs
- GeometryGroup.cs
- EncoderReplacementFallback.cs
- RootBrowserWindowProxy.cs
- MenuAdapter.cs
- GlyphManager.cs
- CheckBoxField.cs
- ColumnResult.cs
- webeventbuffer.cs
- AdPostCacheSubstitution.cs
- EnumerableRowCollection.cs
- LocalizableAttribute.cs
- EntityTransaction.cs
- SqlCommand.cs
- HttpInputStream.cs
- MutexSecurity.cs
- TypeCodeDomSerializer.cs
- AssemblyInfo.cs
- SecurityMessageProperty.cs
- InspectionWorker.cs
- activationcontext.cs
- InputChannel.cs
- TrackingProfileManager.cs
- EventHandlingScope.cs
- Math.cs
- MemberDescriptor.cs
- FreezableDefaultValueFactory.cs
- ResXResourceReader.cs
- HostnameComparisonMode.cs
- FormViewPageEventArgs.cs
- HintTextConverter.cs
- BitConverter.cs
- ProxyOperationRuntime.cs
- NativeMethods.cs
- EpmSyndicationContentSerializer.cs
- PageHandlerFactory.cs
- PolyLineSegment.cs
- coordinator.cs
- DataGridSortCommandEventArgs.cs
- XmlEncodedRawTextWriter.cs
- AppDomainFactory.cs
- PackageRelationship.cs
- ActivityExecutorDelegateInfo.cs
- DetailsViewRowCollection.cs
- SystemFonts.cs
- XmlSchemaFacet.cs
- PlatformCulture.cs
- ContentValidator.cs
- ToolStripItemImageRenderEventArgs.cs
- BamlLocalizer.cs
- ConnectionPointGlyph.cs
- TypeResolver.cs
- FactoryGenerator.cs
- NumericUpDown.cs
- WorkBatch.cs
- TraceSection.cs
- MD5Cng.cs
- RoutedCommand.cs
- TypeElement.cs
- QuestionEventArgs.cs
- CodeDirectiveCollection.cs
- UdpContractFilterBehavior.cs
- AutomationPatternInfo.cs
- ErrorStyle.cs
- Bidi.cs
- Button.cs
- ThicknessAnimation.cs
- DesignTimeParseData.cs
- TextTreeFixupNode.cs
- MetabaseReader.cs
- ThreadPool.cs
- dataSvcMapFileLoader.cs
- ImageSource.cs
- DashStyles.cs
- GlobalItem.cs
- ObjectQuery_EntitySqlExtensions.cs
- _ListenerAsyncResult.cs
- Random.cs
- IFlowDocumentViewer.cs
- CodeDomSerializerBase.cs
- ImageAttributes.cs
- ExpandCollapsePattern.cs
- TemplateControlParser.cs
- QuaternionAnimationUsingKeyFrames.cs
- PermissionToken.cs
- HtmlShimManager.cs
- CodeCatchClauseCollection.cs
- SystemIPAddressInformation.cs
- GridViewColumnHeader.cs
- Parser.cs
- Shape.cs
- ElementHost.cs
- WebDescriptionAttribute.cs
- QueryContinueDragEventArgs.cs
- AutoSizeComboBox.cs
- TextShapeableCharacters.cs
- AppliesToBehaviorDecisionTable.cs
- DataGridViewCheckBoxCell.cs
- DocumentStatusResources.cs