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
- TargetConverter.cs
- MatrixCamera.cs
- CatalogZoneBase.cs
- DataGridComboBoxColumn.cs
- RawKeyboardInputReport.cs
- HtmlMeta.cs
- Debug.cs
- ImmutableObjectAttribute.cs
- RegexReplacement.cs
- TdsParserSessionPool.cs
- Transform.cs
- ByteStorage.cs
- WmlImageAdapter.cs
- InvalidOleVariantTypeException.cs
- ContentElementAutomationPeer.cs
- PersonalizationAdministration.cs
- LingerOption.cs
- SplineKeyFrames.cs
- ProfilePropertySettings.cs
- PeerService.cs
- HttpAsyncResult.cs
- Compilation.cs
- WmlTextBoxAdapter.cs
- Clause.cs
- PrivilegedConfigurationManager.cs
- HttpContextServiceHost.cs
- ObjectQueryState.cs
- RegexMatch.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- RightsManagementProvider.cs
- DbProviderFactories.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- ContractMapping.cs
- SystemUdpStatistics.cs
- NumericPagerField.cs
- SystemIPGlobalProperties.cs
- DispatcherHooks.cs
- HandlerFactoryCache.cs
- EntityClassGenerator.cs
- QilXmlWriter.cs
- SynchronizationScope.cs
- HtmlElement.cs
- Console.cs
- SchemaInfo.cs
- HashSetEqualityComparer.cs
- EntityPropertyMappingAttribute.cs
- FontUnit.cs
- WebPartCancelEventArgs.cs
- NonBatchDirectoryCompiler.cs
- AssociationType.cs
- FieldNameLookup.cs
- TagPrefixCollection.cs
- StaticExtensionConverter.cs
- FontDriver.cs
- ParameterCollection.cs
- WinFormsComponentEditor.cs
- FixedHighlight.cs
- TextBreakpoint.cs
- MouseWheelEventArgs.cs
- NullableDoubleSumAggregationOperator.cs
- AppearanceEditorPart.cs
- TraceContext.cs
- DefaultSerializationProviderAttribute.cs
- GroupAggregateExpr.cs
- AssociationSetMetadata.cs
- OrderedDictionary.cs
- WaitHandle.cs
- DataControlPagerLinkButton.cs
- HandleDictionary.cs
- AnnotationComponentManager.cs
- PixelShader.cs
- DataBinder.cs
- SourceLineInfo.cs
- Line.cs
- DataGridColumnsPage.cs
- ModelPropertyImpl.cs
- ResourceCategoryAttribute.cs
- Baml2006Reader.cs
- FlowDocument.cs
- FlowDocumentReaderAutomationPeer.cs
- MtomMessageEncodingElement.cs
- TableDetailsRow.cs
- NullReferenceException.cs
- CorrelationScope.cs
- ErrorEventArgs.cs
- GrammarBuilderPhrase.cs
- HotSpotCollection.cs
- VirtualizedContainerService.cs
- ZeroOpNode.cs
- DbProviderFactories.cs
- IISMapPath.cs
- HandlerMappingMemo.cs
- Point3DCollection.cs
- FontFamily.cs
- BeginStoryboard.cs
- SectionInformation.cs
- DependencyObject.cs
- _TLSstream.cs
- EntityContainerEmitter.cs
- TreeViewAutomationPeer.cs