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
- RegexWorker.cs
- CompModSwitches.cs
- UseAttributeSetsAction.cs
- CodeExpressionCollection.cs
- UserPreferenceChangingEventArgs.cs
- XmlSyndicationContent.cs
- AdapterDictionary.cs
- _NTAuthentication.cs
- TargetFrameworkUtil.cs
- StrokeIntersection.cs
- MimeMapping.cs
- ObjectComplexPropertyMapping.cs
- FileUtil.cs
- TextElementEnumerator.cs
- Helper.cs
- TreeViewImageKeyConverter.cs
- MembershipValidatePasswordEventArgs.cs
- PageOutputQuality.cs
- FileLoadException.cs
- MenuAutomationPeer.cs
- AttributeQuery.cs
- InvariantComparer.cs
- StorageScalarPropertyMapping.cs
- CryptoConfig.cs
- ThreadExceptionDialog.cs
- WebPartDescription.cs
- VectorCollectionValueSerializer.cs
- SessionStateContainer.cs
- SingleKeyFrameCollection.cs
- ContextStack.cs
- XmlNullResolver.cs
- WizardStepBase.cs
- TransformerInfo.cs
- X509ThumbprintKeyIdentifierClause.cs
- ElementMarkupObject.cs
- ExpressionList.cs
- IFlowDocumentViewer.cs
- StaticFileHandler.cs
- StyleCollection.cs
- LogReserveAndAppendState.cs
- LinqDataSourceView.cs
- HeaderedItemsControl.cs
- SafeNativeMethods.cs
- XmlExtensionFunction.cs
- LicenseProviderAttribute.cs
- SvcMapFileLoader.cs
- GridViewRowEventArgs.cs
- GridViewAutomationPeer.cs
- Parser.cs
- DispatcherProcessingDisabled.cs
- ACL.cs
- OracleInternalConnection.cs
- ButtonBaseDesigner.cs
- CompoundFileIOPermission.cs
- HttpSessionStateBase.cs
- CmsInterop.cs
- ImageFormat.cs
- XmlNodeWriter.cs
- DBDataPermissionAttribute.cs
- DataBindingExpressionBuilder.cs
- CommandManager.cs
- BitmapEffectInputConnector.cs
- control.ime.cs
- IndicFontClient.cs
- StaticDataManager.cs
- TypedLocationWrapper.cs
- ViewStateModeByIdAttribute.cs
- GeometryDrawing.cs
- EntityViewGenerator.cs
- CodeGotoStatement.cs
- ObjectManager.cs
- EmbeddedObject.cs
- DrawingContextWalker.cs
- NullableBoolConverter.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- CodeIterationStatement.cs
- ModelTreeEnumerator.cs
- PartEditor.cs
- WindowsToolbar.cs
- _AuthenticationState.cs
- SamlAuthorizationDecisionStatement.cs
- UrlPath.cs
- XmlQueryStaticData.cs
- LogArchiveSnapshot.cs
- DataColumnMappingCollection.cs
- ServiceElementCollection.cs
- ChannelTokenTypeConverter.cs
- MailBnfHelper.cs
- IPCCacheManager.cs
- FixedSOMTableCell.cs
- BitArray.cs
- ReadOnlyHierarchicalDataSource.cs
- Reference.cs
- BufferedMessageWriter.cs
- ScaleTransform3D.cs
- NoResizeSelectionBorderGlyph.cs
- Win32NamedPipes.cs
- DllNotFoundException.cs
- DisplayNameAttribute.cs
- CorrelationService.cs