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
- BufferedOutputStream.cs
- RegionInfo.cs
- IconBitmapDecoder.cs
- PrinterResolution.cs
- EntityTypeBase.cs
- Listbox.cs
- HttpClientCertificate.cs
- autovalidator.cs
- AncillaryOps.cs
- ColumnCollection.cs
- StackBuilderSink.cs
- MessagePartDescription.cs
- x509store.cs
- TargetControlTypeAttribute.cs
- GridView.cs
- Msec.cs
- BufferModesCollection.cs
- EncoderReplacementFallback.cs
- filewebresponse.cs
- RbTree.cs
- TableFieldsEditor.cs
- ExchangeUtilities.cs
- AspNetSynchronizationContext.cs
- BuiltInExpr.cs
- ResourceDefaultValueAttribute.cs
- TemplateApplicationHelper.cs
- DurableErrorHandler.cs
- NavigationFailedEventArgs.cs
- RefreshEventArgs.cs
- LassoSelectionBehavior.cs
- GenericWebPart.cs
- PeerNameResolver.cs
- HelpInfo.cs
- EncoderParameter.cs
- MobileControlBuilder.cs
- SignedInfo.cs
- RegexFCD.cs
- IPAddressCollection.cs
- RectAnimationBase.cs
- Window.cs
- PrinterUnitConvert.cs
- NumberFunctions.cs
- HostVisual.cs
- KeyConverter.cs
- ColorMatrix.cs
- X509RecipientCertificateServiceElement.cs
- DefaultParameterValueAttribute.cs
- UserPersonalizationStateInfo.cs
- ComponentChangingEvent.cs
- LinqDataSourceValidationException.cs
- WebPartConnectionsEventArgs.cs
- Exceptions.cs
- LinqDataSourceStatusEventArgs.cs
- CursorInteropHelper.cs
- SqlDelegatedTransaction.cs
- DataViewSetting.cs
- AttributeAction.cs
- XmlDeclaration.cs
- ThicknessConverter.cs
- DataGridViewToolTip.cs
- ConfigurationElementCollection.cs
- BaseConfigurationRecord.cs
- DataIdProcessor.cs
- LeftCellWrapper.cs
- ConfigUtil.cs
- TextElementCollection.cs
- Internal.cs
- MetaForeignKeyColumn.cs
- SerializableAttribute.cs
- HtmlInputText.cs
- FrameworkElement.cs
- Debugger.cs
- TypeHelper.cs
- PeerNameRegistration.cs
- SuppressMessageAttribute.cs
- SelectionRangeConverter.cs
- Range.cs
- COM2ColorConverter.cs
- SafeThemeHandle.cs
- ResXDataNode.cs
- CssStyleCollection.cs
- ToolConsole.cs
- RegexReplacement.cs
- ComponentEditorPage.cs
- InternalEnumValidatorAttribute.cs
- AssemblyBuilder.cs
- TraceSource.cs
- TextServicesCompartmentContext.cs
- XmlSchemaSimpleTypeUnion.cs
- TraceContextEventArgs.cs
- DataBoundControlHelper.cs
- Decimal.cs
- DrawingContext.cs
- ReadOnlyPropertyMetadata.cs
- FutureFactory.cs
- GridViewRow.cs
- Pair.cs
- SqlTriggerContext.cs
- DirectionalLight.cs
- DataTableMappingCollection.cs