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
- ProcessModuleCollection.cs
- SQLStringStorage.cs
- EntityDataSourceStatementEditorForm.cs
- TableItemPattern.cs
- SafeLocalMemHandle.cs
- FontWeightConverter.cs
- DataGridViewColumnEventArgs.cs
- Table.cs
- Rect3DValueSerializer.cs
- ReturnType.cs
- DBNull.cs
- AnimatedTypeHelpers.cs
- MenuItemCollection.cs
- AutomationIdentifierGuids.cs
- AttachmentCollection.cs
- AuthenticodeSignatureInformation.cs
- ServiceRoute.cs
- util.cs
- CanonicalFontFamilyReference.cs
- DataRow.cs
- LoginViewDesigner.cs
- DynamicQueryableWrapper.cs
- VectorAnimationBase.cs
- ExecutionPropertyManager.cs
- BufferedStream.cs
- DockAndAnchorLayout.cs
- DataGridColumnCollection.cs
- Assert.cs
- DataGridCaption.cs
- XmlSchemaParticle.cs
- ItemDragEvent.cs
- AliasedSlot.cs
- Cursor.cs
- FileLogRecordEnumerator.cs
- ClientSideQueueItem.cs
- BamlMapTable.cs
- XmlNavigatorStack.cs
- SurrogateSelector.cs
- InputLanguageManager.cs
- RtfControls.cs
- PkcsUtils.cs
- Request.cs
- RSAProtectedConfigurationProvider.cs
- XmlTypeAttribute.cs
- TypeSystemHelpers.cs
- DynamicResourceExtensionConverter.cs
- SubstitutionList.cs
- GACIdentityPermission.cs
- DetailsViewModeEventArgs.cs
- Visitors.cs
- Adorner.cs
- DragCompletedEventArgs.cs
- SqlFactory.cs
- ImageMapEventArgs.cs
- RetrieveVirtualItemEventArgs.cs
- SystemInformation.cs
- CompModSwitches.cs
- ValueSerializerAttribute.cs
- GeneralTransformGroup.cs
- IMembershipProvider.cs
- IISUnsafeMethods.cs
- EnumDataContract.cs
- JsonClassDataContract.cs
- UpdateManifestForBrowserApplication.cs
- SqlDataSourceCache.cs
- EmptyCollection.cs
- AppDomainManager.cs
- _TLSstream.cs
- prompt.cs
- QilTernary.cs
- Pens.cs
- XamlInt32CollectionSerializer.cs
- ToolStripSettings.cs
- ElementsClipboardData.cs
- DocComment.cs
- SqlConnectionPoolGroupProviderInfo.cs
- HtmlSelect.cs
- NameScopePropertyAttribute.cs
- PlatformCulture.cs
- LineServices.cs
- ResourceSet.cs
- SecurityTokenSpecification.cs
- CommonObjectSecurity.cs
- DbConnectionPool.cs
- ApplicationSecurityInfo.cs
- EventProviderClassic.cs
- ISAPIRuntime.cs
- EventData.cs
- PrtCap_Public_Simple.cs
- ConstraintConverter.cs
- SymbolDocumentGenerator.cs
- Lease.cs
- UIElementPropertyUndoUnit.cs
- DelegateArgumentReference.cs
- AttributedMetaModel.cs
- SecureUICommand.cs
- DesignTimeDataBinding.cs
- XDeferredAxisSource.cs
- QilBinary.cs
- ReceiveActivityDesignerTheme.cs