Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Profile / ProfileProvider.cs / 1305376 / 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; 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); } 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; 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); } 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
- ModuleElement.cs
- WebEventCodes.cs
- HandlerFactoryWrapper.cs
- ProxyHwnd.cs
- StringDictionaryEditor.cs
- ResourceDictionary.cs
- IdentityHolder.cs
- HttpRequestCacheValidator.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SessionStateSection.cs
- EdmFunction.cs
- DependencyPropertyAttribute.cs
- WorkerRequest.cs
- CheckBoxFlatAdapter.cs
- PlainXmlDeserializer.cs
- QuadraticBezierSegment.cs
- UrlPath.cs
- ElementUtil.cs
- ColorAnimationBase.cs
- FormViewUpdatedEventArgs.cs
- PinProtectionHelper.cs
- MasterPage.cs
- StringDictionaryWithComparer.cs
- InputChannelAcceptor.cs
- WindowsProgressbar.cs
- ElementInit.cs
- CultureInfoConverter.cs
- SchemeSettingElement.cs
- ProviderConnectionPointCollection.cs
- ConfigXmlSignificantWhitespace.cs
- FixedLineResult.cs
- XmlAttributeProperties.cs
- EntityDesignerDataSourceView.cs
- CalloutQueueItem.cs
- DeadCharTextComposition.cs
- StrokeCollectionConverter.cs
- Convert.cs
- ScriptingProfileServiceSection.cs
- SplineKeyFrames.cs
- JsonDataContract.cs
- Tag.cs
- NativeMethods.cs
- BaseTransportHeaders.cs
- SmiMetaData.cs
- ConsumerConnectionPointCollection.cs
- ScriptReferenceEventArgs.cs
- AdditionalEntityFunctions.cs
- SystemBrushes.cs
- IdleTimeoutMonitor.cs
- EventSetterHandlerConverter.cs
- FacetDescription.cs
- HtmlLink.cs
- EncryptedReference.cs
- CommonDialog.cs
- ConstraintManager.cs
- DataGridViewCellStyle.cs
- TypeNameConverter.cs
- DateTimePicker.cs
- CornerRadius.cs
- PaginationProgressEventArgs.cs
- CorrelationScope.cs
- CompositeFontInfo.cs
- SmtpMail.cs
- PieceDirectory.cs
- ItemAutomationPeer.cs
- DataGridViewRowConverter.cs
- DeleteStoreRequest.cs
- ThreadStartException.cs
- TextRunCacheImp.cs
- SmtpDigestAuthenticationModule.cs
- DrawingBrush.cs
- PropertyValueUIItem.cs
- LoaderAllocator.cs
- BooleanKeyFrameCollection.cs
- AddInBase.cs
- RegexCompiler.cs
- XamlInt32CollectionSerializer.cs
- DocumentationServerProtocol.cs
- CharacterMetricsDictionary.cs
- GatewayDefinition.cs
- ImageKeyConverter.cs
- UnsafeNativeMethods.cs
- TypedReference.cs
- XpsFont.cs
- EditorZone.cs
- XmlLangPropertyAttribute.cs
- HttpCapabilitiesBase.cs
- ToolStripItem.cs
- MembershipPasswordException.cs
- XmlSchemaCollection.cs
- VerificationAttribute.cs
- QueryContext.cs
- MetadataItem.cs
- GridErrorDlg.cs
- TextBoxDesigner.cs
- JsonWriter.cs
- ListBoxChrome.cs
- RepeatBehavior.cs
- Pen.cs
- dsa.cs