Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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]; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DPAPIProtectedConfigurationProvider.cs
- SerializationInfo.cs
- XmlSerializerVersionAttribute.cs
- WpfPayload.cs
- ExpressionNormalizer.cs
- DateTimeFormat.cs
- XPathNodeList.cs
- AuthenticateEventArgs.cs
- XmlToDatasetMap.cs
- QilParameter.cs
- BuildProviderCollection.cs
- FeatureSupport.cs
- TripleDESCryptoServiceProvider.cs
- CreateUserErrorEventArgs.cs
- X509Certificate.cs
- SectionXmlInfo.cs
- InputLanguageManager.cs
- HandleCollector.cs
- SHA256Cng.cs
- WebPartAuthorizationEventArgs.cs
- BatchStream.cs
- Int32.cs
- BlurBitmapEffect.cs
- FormClosingEvent.cs
- StreamWriter.cs
- Knowncolors.cs
- TreeViewImageGenerator.cs
- XPathDocument.cs
- WebPartMenu.cs
- CqlQuery.cs
- Tracer.cs
- ImageInfo.cs
- XmlSerializerFormatAttribute.cs
- StateWorkerRequest.cs
- ZipFileInfo.cs
- TypeUtil.cs
- HexParser.cs
- _Events.cs
- RawStylusInputCustomData.cs
- OptimizedTemplateContent.cs
- CopyCodeAction.cs
- ImageCodecInfo.cs
- Size3D.cs
- ContainerUtilities.cs
- MobileUserControl.cs
- RSAPKCS1SignatureFormatter.cs
- XD.cs
- PrimarySelectionGlyph.cs
- TextServicesCompartmentContext.cs
- User.cs
- Win32SafeHandles.cs
- RelationHandler.cs
- HatchBrush.cs
- UpdateProgress.cs
- HuffModule.cs
- ClientProxyGenerator.cs
- TextEditorCharacters.cs
- Filter.cs
- SafeProcessHandle.cs
- TreeNodeClickEventArgs.cs
- __Filters.cs
- SrgsSubset.cs
- dsa.cs
- SHA384Managed.cs
- ArgumentNullException.cs
- AttachedAnnotationChangedEventArgs.cs
- CodeDOMProvider.cs
- Trigger.cs
- EventLogSession.cs
- InkSerializer.cs
- SafeProcessHandle.cs
- EditModeSwitchButton.cs
- ControlTemplate.cs
- Win32MouseDevice.cs
- Property.cs
- CookieProtection.cs
- XmlDataLoader.cs
- FormsAuthenticationUser.cs
- ItemsChangedEventArgs.cs
- WebPartZoneBase.cs
- BezierSegment.cs
- path.cs
- EmptyStringExpandableObjectConverter.cs
- ResourceProperty.cs
- DragDeltaEventArgs.cs
- EdmPropertyAttribute.cs
- DataSourceControl.cs
- Emitter.cs
- ImmutableObjectAttribute.cs
- Version.cs
- PartialClassGenerationTaskInternal.cs
- DragStartedEventArgs.cs
- RecommendedAsConfigurableAttribute.cs
- ReturnEventArgs.cs
- XamlVector3DCollectionSerializer.cs
- EnterpriseServicesHelper.cs
- FileEnumerator.cs
- DbExpressionRules.cs
- OleDbError.cs
- XamlInt32CollectionSerializer.cs