Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CqlQuery.cs
- DbConnectionStringBuilder.cs
- CheckBoxRenderer.cs
- SqlDataSourceCache.cs
- ContentElementAutomationPeer.cs
- TextStore.cs
- keycontainerpermission.cs
- XmlILCommand.cs
- HandlerFactoryCache.cs
- Int32Rect.cs
- XmlAtomicValue.cs
- EntityDataSourceView.cs
- FrameworkPropertyMetadata.cs
- MissingFieldException.cs
- FileVersion.cs
- CodeRegionDirective.cs
- SharedDp.cs
- Message.cs
- RegexCharClass.cs
- DetailsViewDeletedEventArgs.cs
- PersonalizationProviderCollection.cs
- ReadOnlyHierarchicalDataSource.cs
- DataTable.cs
- DSASignatureDeformatter.cs
- MethodImplAttribute.cs
- WebPartConnectVerb.cs
- WindowsSysHeader.cs
- ChildTable.cs
- ListViewDataItem.cs
- BinaryWriter.cs
- HopperCache.cs
- MethodExpression.cs
- MenuStrip.cs
- BamlLocalizableResource.cs
- IRCollection.cs
- EncoderNLS.cs
- EntityDataSourceChangedEventArgs.cs
- BitmapImage.cs
- LocalIdKeyIdentifierClause.cs
- Convert.cs
- XmlDataSourceNodeDescriptor.cs
- SeparatorAutomationPeer.cs
- TagMapInfo.cs
- ScriptControlDescriptor.cs
- PropertiesTab.cs
- StreamGeometry.cs
- RawStylusInputReport.cs
- Rect3DValueSerializer.cs
- DBSchemaTable.cs
- AsyncStreamReader.cs
- SimpleWebHandlerParser.cs
- RtfToXamlLexer.cs
- DesignerRegionMouseEventArgs.cs
- BlobPersonalizationState.cs
- DrawingImage.cs
- EntityViewGenerationAttribute.cs
- Path.cs
- InstallerTypeAttribute.cs
- CorrelationKey.cs
- xmlfixedPageInfo.cs
- SqlDataRecord.cs
- DataGridViewCellStyleBuilderDialog.cs
- ScrollViewer.cs
- IfAction.cs
- LayoutEvent.cs
- OciLobLocator.cs
- ReadContentAsBinaryHelper.cs
- BlobPersonalizationState.cs
- Marshal.cs
- ComboBoxItem.cs
- DateTimeParse.cs
- MultiTargetingUtil.cs
- WindowsStatusBar.cs
- DrawingGroupDrawingContext.cs
- IndexedGlyphRun.cs
- ToolStripItemDataObject.cs
- OverlappedAsyncResult.cs
- UTF7Encoding.cs
- X509Chain.cs
- webeventbuffer.cs
- SchemaManager.cs
- XmlILOptimizerVisitor.cs
- SafeEventLogWriteHandle.cs
- XamlWriter.cs
- EncoderExceptionFallback.cs
- MemoryStream.cs
- UnsafeNativeMethodsMilCoreApi.cs
- TreeNodeCollection.cs
- SynchronousReceiveElement.cs
- ContainerParaClient.cs
- NameValueConfigurationElement.cs
- CultureData.cs
- BuildManager.cs
- Crc32.cs
- XmlReflectionImporter.cs
- GroupItem.cs
- GenericPrincipal.cs
- X509SecurityToken.cs
- UniqueTransportManagerRegistration.cs
- ResourceDisplayNameAttribute.cs