Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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]; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BamlBinaryReader.cs
- WindowsGraphicsCacheManager.cs
- CoTaskMemHandle.cs
- GroupStyle.cs
- CodeNamespace.cs
- OrderedEnumerableRowCollection.cs
- FixedDSBuilder.cs
- PerfCounterSection.cs
- ListViewItemSelectionChangedEvent.cs
- HwndSubclass.cs
- ModifierKeysConverter.cs
- ObjectQuery_EntitySqlExtensions.cs
- DataGridTextBoxColumn.cs
- LZCodec.cs
- XmlAttribute.cs
- Floater.cs
- OperationResponse.cs
- GenericAuthenticationEventArgs.cs
- TraceXPathNavigator.cs
- GeneralTransform3DCollection.cs
- BigIntegerStorage.cs
- EntityDataSourceUtil.cs
- SystemParameters.cs
- Fault.cs
- CallSite.cs
- Label.cs
- ConfigurationCollectionAttribute.cs
- HtmlHistory.cs
- MemberRelationshipService.cs
- RoleManagerModule.cs
- BindingExpression.cs
- String.cs
- FillRuleValidation.cs
- HandleRef.cs
- NoClickablePointException.cs
- CryptoApi.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- WebPartMenu.cs
- WorkflowQueue.cs
- DiagnosticsConfigurationHandler.cs
- WebPartMenu.cs
- DiscoveryClient.cs
- Nullable.cs
- Permission.cs
- StateMachineSubscriptionManager.cs
- StatusBarPanel.cs
- BitmapPalettes.cs
- ADRole.cs
- InvalidDocumentContentsException.cs
- StringArrayConverter.cs
- ParameterElement.cs
- VisualBasicSettings.cs
- CollectionViewProxy.cs
- Column.cs
- DbConnectionPoolCounters.cs
- WebBaseEventKeyComparer.cs
- XmlFileEditor.cs
- FilterableAttribute.cs
- MailBnfHelper.cs
- IgnoreDeviceFilterElementCollection.cs
- Boolean.cs
- DefaultClaimSet.cs
- DataKeyCollection.cs
- NamespaceMapping.cs
- XmlBufferReader.cs
- PropertyInformationCollection.cs
- XmlSortKeyAccumulator.cs
- MILUtilities.cs
- WebDisplayNameAttribute.cs
- SafeLocalAllocation.cs
- DataGridViewSelectedRowCollection.cs
- SoapAttributeAttribute.cs
- ResolveResponse.cs
- ExpanderAutomationPeer.cs
- XmlDataSourceNodeDescriptor.cs
- ParameterCollection.cs
- FloaterParagraph.cs
- EpmTargetTree.cs
- Helper.cs
- ServiceObjectContainer.cs
- Tuple.cs
- BitmapDownload.cs
- TextUtf8RawTextWriter.cs
- ExtractedStateEntry.cs
- ToolStripInSituService.cs
- QueryInterceptorAttribute.cs
- DiscoveryMessageSequenceGenerator.cs
- CorrelationTokenTypeConvertor.cs
- AlternateView.cs
- EncoderFallback.cs
- MenuDesigner.cs
- _CacheStreams.cs
- BatchWriter.cs
- SqlInternalConnectionTds.cs
- DocumentGridContextMenu.cs
- XmlSchemaParticle.cs
- LifetimeServices.cs
- ConfigurationPropertyCollection.cs
- HttpProfileGroupBase.cs
- RelationshipSet.cs