Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CommonObjectSecurity.cs
- Int16Animation.cs
- SqlRetyper.cs
- TypedTableBase.cs
- CompModHelpers.cs
- EnumerableRowCollectionExtensions.cs
- SimpleLine.cs
- IISMapPath.cs
- SqlConnectionStringBuilder.cs
- ProvideValueServiceProvider.cs
- DateTimeOffset.cs
- XmlILAnnotation.cs
- errorpatternmatcher.cs
- DbConnectionStringBuilder.cs
- SecurityRequiresReviewAttribute.cs
- BitmapEffectInput.cs
- ColorAnimationBase.cs
- DesignerActionPanel.cs
- EntityDataSourceChangedEventArgs.cs
- AlphaSortedEnumConverter.cs
- ListViewGroupItemCollection.cs
- RadioButtonBaseAdapter.cs
- SrgsGrammarCompiler.cs
- FlowNode.cs
- JoinTreeNode.cs
- DataBindingValueUIHandler.cs
- WebConfigurationHostFileChange.cs
- FormViewInsertedEventArgs.cs
- RectAnimationUsingKeyFrames.cs
- ObjectTag.cs
- MailWriter.cs
- ListViewItemMouseHoverEvent.cs
- Serializer.cs
- SchemaNames.cs
- SqlReorderer.cs
- XmlBindingWorker.cs
- SystemColorTracker.cs
- IDispatchConstantAttribute.cs
- IntSecurity.cs
- BigInt.cs
- PageClientProxyGenerator.cs
- EditorPartChrome.cs
- EntityCommandExecutionException.cs
- RectAnimation.cs
- ActivityExecutorOperation.cs
- ModuleConfigurationInfo.cs
- DocumentEventArgs.cs
- FileIOPermission.cs
- DispatcherSynchronizationContext.cs
- ModuleConfigurationInfo.cs
- CollectionBuilder.cs
- xmlglyphRunInfo.cs
- LineBreakRecord.cs
- ProxyWebPart.cs
- PackWebResponse.cs
- WebPartDisplayMode.cs
- TextParaLineResult.cs
- ValidationErrorCollection.cs
- XmlTextReader.cs
- RemoteWebConfigurationHostServer.cs
- AbstractExpressions.cs
- ViewBox.cs
- NetworkAddressChange.cs
- DefaultPropertyAttribute.cs
- DocumentDesigner.cs
- TemplateNameScope.cs
- StructuredType.cs
- ActiveXContainer.cs
- ConnectionPoint.cs
- ResourceContainer.cs
- HtmlTextArea.cs
- RootCodeDomSerializer.cs
- FrameworkTemplate.cs
- VarInfo.cs
- GradientBrush.cs
- ThrowHelper.cs
- Int32.cs
- InitializerFacet.cs
- Wildcard.cs
- FixedSOMTableCell.cs
- GetWinFXPath.cs
- BaseAppDomainProtocolHandler.cs
- AnimationClockResource.cs
- SQLSingle.cs
- MatrixTransform.cs
- TabItem.cs
- TreeNodeStyleCollection.cs
- NodeCounter.cs
- CreateInstanceBinder.cs
- Logging.cs
- DataGridCommandEventArgs.cs
- NullReferenceException.cs
- HashHelpers.cs
- SystemIcmpV6Statistics.cs
- XmlIterators.cs
- SafeEventLogReadHandle.cs
- UrlAuthorizationModule.cs
- BitmapEffect.cs
- DesignTimeParseData.cs
- FloaterParagraph.cs