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
- Splitter.cs
- WebBrowserBase.cs
- TrackingDataItemValue.cs
- DataListGeneralPage.cs
- WebPartConnectionsConnectVerb.cs
- OleAutBinder.cs
- SQLBinary.cs
- OrderByExpression.cs
- counter.cs
- OleDbStruct.cs
- ErrorWebPart.cs
- DynamicRendererThreadManager.cs
- AssemblyBuilder.cs
- SecurityDocument.cs
- URL.cs
- DataGridToolTip.cs
- SequentialOutput.cs
- DesignConnectionCollection.cs
- DeploymentExceptionMapper.cs
- InstanceKeyNotReadyException.cs
- ObjectPersistData.cs
- PreviewKeyDownEventArgs.cs
- Group.cs
- DataMisalignedException.cs
- Quaternion.cs
- PrintControllerWithStatusDialog.cs
- OleDbCommand.cs
- dsa.cs
- MultipartIdentifier.cs
- RuntimeResourceSet.cs
- ArrangedElement.cs
- XmlMemberMapping.cs
- ReliabilityContractAttribute.cs
- ReadOnlyHierarchicalDataSource.cs
- XmlFormatWriterGenerator.cs
- PeerCollaboration.cs
- ProfileManager.cs
- AlternationConverter.cs
- Icon.cs
- dsa.cs
- EventLogPermissionAttribute.cs
- Int32Converter.cs
- Ipv6Element.cs
- MemoryMappedViewStream.cs
- DataSourceUtil.cs
- UTF7Encoding.cs
- JsonQNameDataContract.cs
- CommandValueSerializer.cs
- RootDesignerSerializerAttribute.cs
- XPathNodeHelper.cs
- EventLogSession.cs
- WebPartTransformerCollection.cs
- SqlXmlStorage.cs
- PageAsyncTask.cs
- TabRenderer.cs
- PropertyManager.cs
- HttpWriter.cs
- Cursor.cs
- SurrogateEncoder.cs
- DeviceContexts.cs
- ExpressionWriter.cs
- ResourcesBuildProvider.cs
- FixedSOMFixedBlock.cs
- OleDbRowUpdatingEvent.cs
- IndexOutOfRangeException.cs
- XslCompiledTransform.cs
- OdbcDataAdapter.cs
- XmlSchemaSimpleTypeList.cs
- IndicFontClient.cs
- StorageInfo.cs
- ApplicationHost.cs
- EventItfInfo.cs
- SQLDouble.cs
- MimePart.cs
- ScriptRef.cs
- MultipleViewPattern.cs
- XmlUtil.cs
- SharedPerformanceCounter.cs
- ToolStripRendererSwitcher.cs
- HistoryEventArgs.cs
- DbException.cs
- SqlBuilder.cs
- TemplateXamlParser.cs
- QuaternionAnimation.cs
- CommonDialog.cs
- ObjectItemAttributeAssemblyLoader.cs
- SafeSecurityHelper.cs
- DataSpaceManager.cs
- SimplePropertyEntry.cs
- OptimalTextSource.cs
- ParsedAttributeCollection.cs
- UnhandledExceptionEventArgs.cs
- _IPv6Address.cs
- BlurEffect.cs
- HttpListenerContext.cs
- RoleManagerModule.cs
- XmlTextReader.cs
- RuntimeCompatibilityAttribute.cs
- NativeMethods.cs
- TreeIterator.cs