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
- PropertyKey.cs
- ReadOnlyActivityGlyph.cs
- XmlWhitespace.cs
- RequestCachePolicyConverter.cs
- XsltException.cs
- TypeUsage.cs
- SystemIcons.cs
- FilterEventArgs.cs
- ReadOnlyDictionary.cs
- CacheOutputQuery.cs
- MouseButtonEventArgs.cs
- Helpers.cs
- ControlEvent.cs
- MappedMetaModel.cs
- BooleanKeyFrameCollection.cs
- Funcletizer.cs
- TrustLevel.cs
- CodeMemberProperty.cs
- ResXResourceReader.cs
- StringBlob.cs
- SystemWebCachingSectionGroup.cs
- WebPartEventArgs.cs
- RefreshPropertiesAttribute.cs
- TextEmbeddedObject.cs
- Dictionary.cs
- ThrowHelper.cs
- MergeFailedEvent.cs
- _NegotiateClient.cs
- PointConverter.cs
- WebPartHelpVerb.cs
- printdlgexmarshaler.cs
- ModelTypeConverter.cs
- httpapplicationstate.cs
- TextTreeTextBlock.cs
- StateBag.cs
- CellCreator.cs
- ColorComboBox.cs
- EndpointAddressProcessor.cs
- PassportAuthenticationEventArgs.cs
- GAC.cs
- RuntimeVariablesExpression.cs
- TextContainer.cs
- HttpApplication.cs
- TemplatePartAttribute.cs
- Stylesheet.cs
- RtfToXamlLexer.cs
- HttpPostedFileWrapper.cs
- ProjectionPlan.cs
- ScrollChangedEventArgs.cs
- EventLogPermissionEntryCollection.cs
- XmlSchemaAttributeGroup.cs
- JsonStringDataContract.cs
- ServiceThrottlingElement.cs
- PasswordRecoveryDesigner.cs
- ComponentDispatcher.cs
- InternalSafeNativeMethods.cs
- PathFigureCollectionValueSerializer.cs
- webproxy.cs
- XmlSubtreeReader.cs
- CodeBlockBuilder.cs
- BoundsDrawingContextWalker.cs
- TransactionFilter.cs
- Pointer.cs
- NetworkInformationPermission.cs
- UriExt.cs
- CodeTryCatchFinallyStatement.cs
- ToolStripTextBox.cs
- SQLByteStorage.cs
- IProvider.cs
- ExtendedProperty.cs
- RightsManagementManager.cs
- UriExt.cs
- SafeHandles.cs
- SettingsBindableAttribute.cs
- ValueUnavailableException.cs
- SqlErrorCollection.cs
- KeyValueConfigurationCollection.cs
- ServiceEndpointCollection.cs
- PermissionSet.cs
- ImageAnimator.cs
- ProtectedConfigurationSection.cs
- HtmlToClrEventProxy.cs
- ArrangedElement.cs
- XmlSiteMapProvider.cs
- SerializationInfo.cs
- XPathCompileException.cs
- ThumbButtonInfoCollection.cs
- TransformedBitmap.cs
- XmlSchemaElement.cs
- QuadraticBezierSegment.cs
- GridItem.cs
- InplaceBitmapMetadataWriter.cs
- EventDrivenDesigner.cs
- Timeline.cs
- XmlnsDictionary.cs
- SecurityTimestamp.cs
- TraceSource.cs
- XPathSingletonIterator.cs
- SystemGatewayIPAddressInformation.cs
- HitTestResult.cs