Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SystemInformation.cs
- DropShadowBitmapEffect.cs
- ContainerUIElement3D.cs
- DataGridColumn.cs
- DBSqlParserTableCollection.cs
- GridViewColumnCollectionChangedEventArgs.cs
- FastPropertyAccessor.cs
- PropertyConverter.cs
- Frame.cs
- UncommonField.cs
- CloseCollectionAsyncResult.cs
- RemoteCryptoTokenProvider.cs
- TCPListener.cs
- DynamicRenderer.cs
- MultiTrigger.cs
- SqlTriggerAttribute.cs
- BlobPersonalizationState.cs
- StaticExtension.cs
- UnmanagedHandle.cs
- ManifestSignedXml.cs
- ComponentEvent.cs
- WebEventTraceProvider.cs
- WpfPayload.cs
- PersonalizableTypeEntry.cs
- CSharpCodeProvider.cs
- FormsAuthenticationModule.cs
- GeometryModel3D.cs
- MultipartContentParser.cs
- SiteMap.cs
- RequestCachePolicyConverter.cs
- TypeInfo.cs
- Size3DValueSerializer.cs
- DesignTableCollection.cs
- NotSupportedException.cs
- MonikerSyntaxException.cs
- HeaderedItemsControl.cs
- CustomWebEventKey.cs
- EntityCommandDefinition.cs
- TimeStampChecker.cs
- WinEventHandler.cs
- WebPartMenu.cs
- UnsafeNativeMethods.cs
- UpdateExpressionVisitor.cs
- HtmlInputRadioButton.cs
- EventData.cs
- VariableBinder.cs
- ToolStripManager.cs
- DbDataSourceEnumerator.cs
- XmlSchemaNotation.cs
- OracleConnectionFactory.cs
- MarkedHighlightComponent.cs
- XmlEntityReference.cs
- RTTrackingProfile.cs
- ProviderSettingsCollection.cs
- ZoneLinkButton.cs
- ListViewEditEventArgs.cs
- SqlConnectionString.cs
- CharEntityEncoderFallback.cs
- SizeFConverter.cs
- MergablePropertyAttribute.cs
- ToolBarOverflowPanel.cs
- DBSchemaTable.cs
- MediaScriptCommandRoutedEventArgs.cs
- EventSetterHandlerConverter.cs
- UIElement3D.cs
- Context.cs
- GZipStream.cs
- List.cs
- LayoutTableCell.cs
- NameValueCollection.cs
- XmlDataProvider.cs
- XmlSecureResolver.cs
- HMACSHA384.cs
- CommandBinding.cs
- AttributeEmitter.cs
- SpanIndex.cs
- StreamInfo.cs
- OutputCacheSection.cs
- FormViewDesigner.cs
- EFColumnProvider.cs
- DragEventArgs.cs
- Translator.cs
- Compiler.cs
- CustomPopupPlacement.cs
- ExtendedProtectionPolicyTypeConverter.cs
- ParenthesizePropertyNameAttribute.cs
- PreviewKeyDownEventArgs.cs
- FileUpload.cs
- EmptyTextWriter.cs
- Misc.cs
- MappableObjectManager.cs
- BitSet.cs
- SurrogateSelector.cs
- XmlSchemaSequence.cs
- InfoCardSymmetricAlgorithm.cs
- PathParser.cs
- SoapAttributeAttribute.cs
- Condition.cs
- SetStoryboardSpeedRatio.cs
- XmlSchemaParticle.cs