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
- IItemProperties.cs
- MetafileHeaderWmf.cs
- ReadOnlyPermissionSet.cs
- SettingsPropertyValueCollection.cs
- PlainXmlSerializer.cs
- IndependentlyAnimatedPropertyMetadata.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- EncoderExceptionFallback.cs
- OverloadGroupAttribute.cs
- ObjectDataSourceFilteringEventArgs.cs
- SqlDataSourceSelectingEventArgs.cs
- NativeWrapper.cs
- CellRelation.cs
- LinkClickEvent.cs
- PreservationFileWriter.cs
- DetailsViewDeleteEventArgs.cs
- TextElement.cs
- InputReport.cs
- IItemContainerGenerator.cs
- _AutoWebProxyScriptEngine.cs
- WebConfigurationHost.cs
- DataContract.cs
- SymmetricSecurityProtocol.cs
- BitmapMetadataEnumerator.cs
- InteropTrackingRecord.cs
- SetStoryboardSpeedRatio.cs
- Evaluator.cs
- RegistrationServices.cs
- FacetChecker.cs
- ProfilePropertySettingsCollection.cs
- Stylesheet.cs
- HttpListenerPrefixCollection.cs
- Endpoint.cs
- NamespaceInfo.cs
- PlatformCulture.cs
- CompositeKey.cs
- PowerModeChangedEventArgs.cs
- Size.cs
- SiteMembershipCondition.cs
- KnownTypesHelper.cs
- relpropertyhelper.cs
- SqlTrackingWorkflowInstance.cs
- Comparer.cs
- SystemEvents.cs
- HttpApplication.cs
- OleDbWrapper.cs
- XmlSchemaGroupRef.cs
- InternalsVisibleToAttribute.cs
- WindowInteractionStateTracker.cs
- EventMappingSettingsCollection.cs
- ActivityLocationReferenceEnvironment.cs
- EdmSchemaAttribute.cs
- WinEventQueueItem.cs
- DbConnectionPoolIdentity.cs
- ZoneButton.cs
- XsdDateTime.cs
- TextParaLineResult.cs
- CodeDirectionExpression.cs
- FlowDocumentPaginator.cs
- HitTestWithPointDrawingContextWalker.cs
- DnsPermission.cs
- OleDbEnumerator.cs
- mansign.cs
- CheckBoxPopupAdapter.cs
- WorkflowControlClient.cs
- OutOfProcStateClientManager.cs
- PropertyInfo.cs
- EmissiveMaterial.cs
- CategoryValueConverter.cs
- Sequence.cs
- Subtree.cs
- WindowCollection.cs
- XmlFormatWriterGenerator.cs
- DetailsViewUpdatedEventArgs.cs
- TreeNodeStyleCollection.cs
- IsolatedStorageFileStream.cs
- XmlSchemaDatatype.cs
- sqlnorm.cs
- MachineKeySection.cs
- PagesChangedEventArgs.cs
- GroupBox.cs
- IfAction.cs
- TemplateControlCodeDomTreeGenerator.cs
- ApplicationBuildProvider.cs
- OdbcCommandBuilder.cs
- ToolStripSystemRenderer.cs
- ApplyImportsAction.cs
- DefaultSerializationProviderAttribute.cs
- SiteIdentityPermission.cs
- HttpCachePolicyBase.cs
- DataGrid.cs
- WebBrowser.cs
- EncoderParameter.cs
- ChangeConflicts.cs
- NamespaceImport.cs
- ResourcesBuildProvider.cs
- ErrorEventArgs.cs
- IdentityManager.cs
- StringFunctions.cs
- GridProviderWrapper.cs