Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // //----------------------------------------------------------------------------- /* * 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PassportAuthenticationModule.cs
- QueryConverter.cs
- DataControlCommands.cs
- SafeEventLogReadHandle.cs
- XslAst.cs
- CommentGlyph.cs
- VirtualDirectoryMappingCollection.cs
- RepeatButtonAutomationPeer.cs
- WindowsToolbarAsMenu.cs
- HtmlInputSubmit.cs
- XmlValidatingReaderImpl.cs
- HttpClientProtocol.cs
- DataGridColumnCollection.cs
- UnicastIPAddressInformationCollection.cs
- XsltContext.cs
- RuleSetDialog.cs
- XmlSchemaCompilationSettings.cs
- Border.cs
- DataConnectionHelper.cs
- _NativeSSPI.cs
- LassoSelectionBehavior.cs
- FormViewRow.cs
- InternalSafeNativeMethods.cs
- MsmqIntegrationBindingElement.cs
- HttpHandlerActionCollection.cs
- CodeTypeReference.cs
- GroupBox.cs
- Sql8ExpressionRewriter.cs
- DataGridViewRowConverter.cs
- InvalidCastException.cs
- XmlSchemaInfo.cs
- SafeFileMappingHandle.cs
- XamlTypeMapper.cs
- ToolStripDropDown.cs
- RegexCaptureCollection.cs
- BinaryCommonClasses.cs
- TextTreeExtractElementUndoUnit.cs
- StrokeSerializer.cs
- ReferentialConstraint.cs
- Figure.cs
- FixedBufferAttribute.cs
- HttpWebResponse.cs
- AudioStateChangedEventArgs.cs
- EnvironmentPermission.cs
- DrawingState.cs
- NavigateEvent.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- PerfCounters.cs
- ContextMenuStrip.cs
- FixedSOMImage.cs
- TextTreeNode.cs
- MustUnderstandSoapException.cs
- FormsAuthenticationEventArgs.cs
- HashCryptoHandle.cs
- ContentPlaceHolder.cs
- AlphabeticalEnumConverter.cs
- XNodeValidator.cs
- ToolStripScrollButton.cs
- NativeActivity.cs
- ColorConvertedBitmap.cs
- SequenceFullException.cs
- SqlRewriteScalarSubqueries.cs
- UriParserTemplates.cs
- RegistryPermission.cs
- ContainsRowNumberChecker.cs
- CompositeActivityMarkupSerializer.cs
- ADConnectionHelper.cs
- SqlCacheDependencyDatabaseCollection.cs
- XmlStringTable.cs
- MethodBuilderInstantiation.cs
- XamlToRtfParser.cs
- SmiTypedGetterSetter.cs
- XhtmlBasicListAdapter.cs
- CollectionViewSource.cs
- HitTestParameters.cs
- BinaryConverter.cs
- TextEditorParagraphs.cs
- PaperSource.cs
- GridPatternIdentifiers.cs
- MtomMessageEncodingBindingElement.cs
- SqlTypesSchemaImporter.cs
- Pool.cs
- ListItemCollection.cs
- WindowsRichEditRange.cs
- FirstMatchCodeGroup.cs
- LongValidator.cs
- Thickness.cs
- FixedSOMPage.cs
- DataDesignUtil.cs
- AutoCompleteStringCollection.cs
- ActivatableWorkflowsQueryResult.cs
- ContextProperty.cs
- XmlUtil.cs
- DataGridViewColumnEventArgs.cs
- RequestContext.cs
- Control.cs
- CaseExpr.cs
- WindowsTooltip.cs
- CompiledQueryCacheKey.cs
- MenuDesigner.cs