Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DynamicUpdateCommand.cs
- Token.cs
- LocatorGroup.cs
- HttpRequest.cs
- XmlDownloadManager.cs
- TraceInternal.cs
- DataBoundControl.cs
- UnsafeNativeMethods.cs
- SerializationFieldInfo.cs
- TextPointerBase.cs
- XslAst.cs
- DataControlCommands.cs
- ColumnMap.cs
- AppDomainShutdownMonitor.cs
- TranslateTransform3D.cs
- DataServiceResponse.cs
- DispatcherSynchronizationContext.cs
- Stack.cs
- DynamicQueryableWrapper.cs
- SystemParameters.cs
- BaseHashHelper.cs
- ValidationError.cs
- ToolStripDropDownItem.cs
- CatalogZoneBase.cs
- MimeMapping.cs
- TextBox.cs
- ObjectQueryExecutionPlan.cs
- DataSourceControlBuilder.cs
- DataStorage.cs
- UnsafeNativeMethods.cs
- Polyline.cs
- XamlSerializerUtil.cs
- ParentQuery.cs
- SetterBaseCollection.cs
- BasicViewGenerator.cs
- ObjectViewQueryResultData.cs
- HTTPNotFoundHandler.cs
- ContentPlaceHolder.cs
- CachingHintValidation.cs
- WebConfigurationHost.cs
- storepermissionattribute.cs
- BaseWebProxyFinder.cs
- DrawingContextDrawingContextWalker.cs
- IndexerNameAttribute.cs
- SpotLight.cs
- RuleSettings.cs
- Stack.cs
- MarkupExtensionSerializer.cs
- XmlLanguageConverter.cs
- XmlSchemaProviderAttribute.cs
- ManagedFilter.cs
- TabControlAutomationPeer.cs
- ISFTagAndGuidCache.cs
- InvalidPrinterException.cs
- ListBox.cs
- FunctionImportMapping.cs
- FormViewDeleteEventArgs.cs
- RuntimeResourceSet.cs
- TemplateBamlRecordReader.cs
- StreamingContext.cs
- AmbientProperties.cs
- RijndaelCryptoServiceProvider.cs
- Membership.cs
- DataRecordInfo.cs
- StringSorter.cs
- ModelVisual3D.cs
- ReadOnlyTernaryTree.cs
- FileChangesMonitor.cs
- RegistrySecurity.cs
- TraceHandler.cs
- CompositeCollectionView.cs
- TrustSection.cs
- Transform.cs
- WindowsServiceCredential.cs
- Rethrow.cs
- RenameRuleObjectDialog.cs
- EastAsianLunisolarCalendar.cs
- SqlTypeSystemProvider.cs
- Typography.cs
- FormsAuthenticationUserCollection.cs
- SmtpReplyReader.cs
- WsatConfiguration.cs
- PermissionRequestEvidence.cs
- Track.cs
- PeerCollaboration.cs
- RegexWorker.cs
- Win32.cs
- HitTestParameters.cs
- ViewCellSlot.cs
- GeometryConverter.cs
- sitestring.cs
- DirectoryNotFoundException.cs
- CharacterString.cs
- BoolLiteral.cs
- ThrowHelper.cs
- NetworkInformationPermission.cs
- AlphabeticalEnumConverter.cs
- PinnedBufferMemoryStream.cs
- KeyInstance.cs
- RegistryPermission.cs