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
- RegexNode.cs
- UdpTransportBindingElement.cs
- FormsAuthenticationUser.cs
- TypedMessageConverter.cs
- AppLevelCompilationSectionCache.cs
- TextDecoration.cs
- FixedSOMPageConstructor.cs
- pingexception.cs
- RichTextBoxConstants.cs
- ConcatQueryOperator.cs
- ScriptControlManager.cs
- StyleXamlParser.cs
- FuncTypeConverter.cs
- TransformConverter.cs
- IndexOutOfRangeException.cs
- WorkflowMarkupElementEventArgs.cs
- WarningException.cs
- Int64Storage.cs
- SqlStream.cs
- ConfigurationValue.cs
- LockedAssemblyCache.cs
- Missing.cs
- SqlConnectionString.cs
- TransformerTypeCollection.cs
- DesignerHost.cs
- IgnoreFlushAndCloseStream.cs
- SQLInt16Storage.cs
- XmlHierarchyData.cs
- PlanCompiler.cs
- CharEntityEncoderFallback.cs
- KeyInterop.cs
- CapabilitiesUse.cs
- PropertyGridCommands.cs
- DependencyProperty.cs
- FormatConvertedBitmap.cs
- SyndicationDeserializer.cs
- StringCollectionMarkupSerializer.cs
- SettingsBindableAttribute.cs
- DiscoveryProxy.cs
- EnvironmentPermission.cs
- CommandManager.cs
- SafeWaitHandle.cs
- SHA512.cs
- Transform3DGroup.cs
- ObjectTypeMapping.cs
- ListBase.cs
- MaskedTextProvider.cs
- CodeSubDirectory.cs
- SoapAttributeOverrides.cs
- InplaceBitmapMetadataWriter.cs
- Container.cs
- DocumentPageTextView.cs
- ComplexType.cs
- CodeDOMUtility.cs
- XmlExpressionDumper.cs
- DerivedKeySecurityTokenStub.cs
- UnSafeCharBuffer.cs
- XhtmlConformanceSection.cs
- ReaderOutput.cs
- XmlSignatureManifest.cs
- IArgumentProvider.cs
- CodePageEncoding.cs
- FileUpload.cs
- DesignerObject.cs
- IIS7UserPrincipal.cs
- PowerModeChangedEventArgs.cs
- BufferedGraphics.cs
- NumberFormatInfo.cs
- WebPartUserCapability.cs
- TableCellCollection.cs
- TextSelectionHelper.cs
- Expr.cs
- SiteMapDataSourceView.cs
- TypeToken.cs
- XmlRawWriter.cs
- MachineKeyConverter.cs
- ExpressionLink.cs
- GeometryHitTestResult.cs
- ISFClipboardData.cs
- EntityType.cs
- FileInfo.cs
- RichTextBoxContextMenu.cs
- SerialErrors.cs
- ObjectSecurity.cs
- CharacterHit.cs
- DeferredElementTreeState.cs
- _SecureChannel.cs
- CustomExpression.cs
- PackageProperties.cs
- StorageConditionPropertyMapping.cs
- ASCIIEncoding.cs
- Int32KeyFrameCollection.cs
- DispatcherProcessingDisabled.cs
- DebugController.cs
- RetrieveVirtualItemEventArgs.cs
- SqlProcedureAttribute.cs
- ControlHelper.cs
- DependencyPropertyValueSerializer.cs
- FormView.cs
- Variant.cs