Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- WorkerRequest.cs
- InheritanceContextHelper.cs
- Canvas.cs
- MappedMetaModel.cs
- WebBrowserEvent.cs
- Security.cs
- WrappedIUnknown.cs
- PrivilegeNotHeldException.cs
- FrameworkContentElement.cs
- StringKeyFrameCollection.cs
- ListViewTableRow.cs
- ConnectionStringEditor.cs
- ISessionStateStore.cs
- SqlClientFactory.cs
- XmlQueryRuntime.cs
- AssemblyAttributes.cs
- PermissionSetTriple.cs
- AttachmentService.cs
- CodeAttributeArgumentCollection.cs
- NetworkStream.cs
- Viewport3DAutomationPeer.cs
- NegotiateStream.cs
- PKCS1MaskGenerationMethod.cs
- AccessControlList.cs
- Script.cs
- ObjectItemCollection.cs
- GridEntryCollection.cs
- MimeFormatter.cs
- WindowsGraphicsCacheManager.cs
- AddInContractAttribute.cs
- CaseStatementSlot.cs
- RootBuilder.cs
- SerializationStore.cs
- Column.cs
- ConsoleTraceListener.cs
- TextViewBase.cs
- MsmqActivation.cs
- ColorConvertedBitmap.cs
- WebPartEditorOkVerb.cs
- TypeConverterMarkupExtension.cs
- MultipleViewPattern.cs
- XmlCollation.cs
- TextSerializer.cs
- EventDescriptor.cs
- MaskDescriptors.cs
- FormsAuthenticationEventArgs.cs
- Dispatcher.cs
- ClipboardProcessor.cs
- SqlCrossApplyToCrossJoin.cs
- SmiConnection.cs
- WebServiceParameterData.cs
- CaseStatement.cs
- XPathNodePointer.cs
- PieceNameHelper.cs
- TdsParserStaticMethods.cs
- AtomServiceDocumentSerializer.cs
- AmbientValueAttribute.cs
- TextServicesPropertyRanges.cs
- HttpContext.cs
- ProtocolsInstallComponent.cs
- SingleSelectRootGridEntry.cs
- ObjectListItemCollection.cs
- LinkArea.cs
- PrintPreviewDialog.cs
- WebPartDisplayModeEventArgs.cs
- NavigationProperty.cs
- SqlCommandBuilder.cs
- SolidBrush.cs
- SchemaTypeEmitter.cs
- IpcPort.cs
- PolyBezierSegment.cs
- validation.cs
- RouteItem.cs
- TripleDES.cs
- SqlGatherProducedAliases.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- ListViewGroup.cs
- StickyNoteHelper.cs
- EntityDataReader.cs
- VariableExpressionConverter.cs
- WsdlBuildProvider.cs
- DataFieldEditor.cs
- KeyboardNavigation.cs
- ProxyManager.cs
- SkipStoryboardToFill.cs
- AudioStateChangedEventArgs.cs
- PolyBezierSegmentFigureLogic.cs
- FileInfo.cs
- ProtocolsConfiguration.cs
- TableLayoutPanelCellPosition.cs
- MetadataFile.cs
- AncestorChangedEventArgs.cs
- XmlSchemaAnnotated.cs
- PowerStatus.cs
- Single.cs
- ItemType.cs
- EventMap.cs
- List.cs
- RootAction.cs
- OutputCacheProviderCollection.cs