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
- XmlQueryType.cs
- DataViewSetting.cs
- IndentTextWriter.cs
- OneOfElement.cs
- RewritingSimplifier.cs
- DataServiceQuery.cs
- JoinGraph.cs
- SqlMultiplexer.cs
- PropertyOverridesDialog.cs
- DataGridViewCellCancelEventArgs.cs
- EventWaitHandle.cs
- relpropertyhelper.cs
- TableRowsCollectionEditor.cs
- OleDbError.cs
- ApplicationDirectoryMembershipCondition.cs
- ContextStack.cs
- CommandExpr.cs
- TextServicesCompartment.cs
- DefaultCommandConverter.cs
- ExtendedPropertyInfo.cs
- InkCanvasSelection.cs
- SQLInt16.cs
- StrongTypingException.cs
- PointValueSerializer.cs
- BaseAddressPrefixFilterElement.cs
- DataTableReader.cs
- LambdaCompiler.Lambda.cs
- SynchronizedPool.cs
- BindingSourceDesigner.cs
- DataStreams.cs
- XamlDesignerSerializationManager.cs
- Evidence.cs
- ObjectPropertyMapping.cs
- ModelPerspective.cs
- ProviderConnectionPointCollection.cs
- TraversalRequest.cs
- WindowsAuthenticationEventArgs.cs
- ImportDesigner.xaml.cs
- ListInitExpression.cs
- AccessDataSourceView.cs
- Vector3DCollection.cs
- EntityDataSourceStatementEditorForm.cs
- ObjectCloneHelper.cs
- PagesChangedEventArgs.cs
- VSWCFServiceContractGenerator.cs
- HttpClientCertificate.cs
- HwndHostAutomationPeer.cs
- TextWriter.cs
- BindableAttribute.cs
- COM2IProvidePropertyBuilderHandler.cs
- HtmlControl.cs
- InstanceData.cs
- FormsAuthentication.cs
- ModelEditingScope.cs
- ActiveXHelper.cs
- ClientOperation.cs
- Typography.cs
- XmlSequenceWriter.cs
- Focus.cs
- TextEditorContextMenu.cs
- ServiceAuthorizationBehavior.cs
- GroupBoxRenderer.cs
- SubstitutionList.cs
- TextPointerBase.cs
- ToolStripItemBehavior.cs
- ScrollableControl.cs
- DateTimeFormat.cs
- EdmError.cs
- IDispatchConstantAttribute.cs
- TableLayoutPanelResizeGlyph.cs
- DataSourceXmlAttributeAttribute.cs
- MappingSource.cs
- Propagator.JoinPropagator.cs
- ResourcePermissionBase.cs
- EFColumnProvider.cs
- D3DImage.cs
- CollectionChangedEventManager.cs
- MulticastOption.cs
- IntSecurity.cs
- CultureInfo.cs
- XamlWrappingReader.cs
- Blend.cs
- MappingModelBuildProvider.cs
- DrawingAttributesDefaultValueFactory.cs
- ObjectContext.cs
- MemoryMappedView.cs
- TraceSource.cs
- Internal.cs
- RequestStatusBarUpdateEventArgs.cs
- MaskedTextBox.cs
- RuntimeConfigLKG.cs
- QueueProcessor.cs
- DocumentsTrace.cs
- DetailsViewPagerRow.cs
- XmlUnspecifiedAttribute.cs
- XmlSchemaInfo.cs
- WindowsPrincipal.cs
- KernelTypeValidation.cs
- CorrelationTokenTypeConvertor.cs
- MulticastDelegate.cs