Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridViewSelectedColumnCollection.cs
- SocketStream.cs
- HwndStylusInputProvider.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- xmlsaver.cs
- Helpers.cs
- IsolatedStorageException.cs
- RemotingAttributes.cs
- ConsumerConnectionPoint.cs
- XmlILStorageConverter.cs
- DataGridViewCellConverter.cs
- BitmapEffectGroup.cs
- GridViewCellAutomationPeer.cs
- DefaultProxySection.cs
- HTMLTagNameToTypeMapper.cs
- MobileListItem.cs
- Transactions.cs
- TypeToArgumentTypeConverter.cs
- SqlCacheDependency.cs
- TaskbarItemInfo.cs
- connectionpool.cs
- SystemDiagnosticsSection.cs
- ConnectionManagementElementCollection.cs
- SqlDataSourceCache.cs
- RuleElement.cs
- Geometry3D.cs
- SamlSecurityTokenAuthenticator.cs
- ToolStripPanelRow.cs
- Invariant.cs
- X509Certificate2.cs
- InternalTypeHelper.cs
- EndpointDiscoveryMetadata.cs
- AsymmetricSignatureDeformatter.cs
- baseaxisquery.cs
- HttpConfigurationContext.cs
- FormCollection.cs
- FileVersion.cs
- LabelDesigner.cs
- ChangePassword.cs
- ProxyAttribute.cs
- NavigationWindow.cs
- DoubleLink.cs
- FormViewInsertedEventArgs.cs
- SystemWebCachingSectionGroup.cs
- MethodBuilderInstantiation.cs
- PerformanceCounterPermissionEntry.cs
- GridViewColumnCollection.cs
- MDIClient.cs
- Cursor.cs
- RequestCacheEntry.cs
- TrimSurroundingWhitespaceAttribute.cs
- CustomSignedXml.cs
- PenThread.cs
- GetMemberBinder.cs
- NativeMethods.cs
- XmlQuerySequence.cs
- BitmapEffectInput.cs
- XPathNavigator.cs
- SizeAnimationClockResource.cs
- OpenFileDialog.cs
- HttpModule.cs
- PopupEventArgs.cs
- EventLogSession.cs
- TargetControlTypeAttribute.cs
- ArrayElementGridEntry.cs
- CmsUtils.cs
- NetworkStream.cs
- JournalEntryListConverter.cs
- DataGridViewCellStateChangedEventArgs.cs
- HttpApplicationStateBase.cs
- ReadOnlyDataSource.cs
- DbReferenceCollection.cs
- ConnectionsZoneAutoFormat.cs
- Crypto.cs
- RestHandler.cs
- GregorianCalendarHelper.cs
- IndependentAnimationStorage.cs
- EUCJPEncoding.cs
- Trace.cs
- PathFigureCollectionConverter.cs
- WebPartMovingEventArgs.cs
- ProxySimple.cs
- WebPartDisplayMode.cs
- ViewCellRelation.cs
- SqlBulkCopy.cs
- ImageButton.cs
- DataBindingCollection.cs
- PropertyGridView.cs
- BaseDataBoundControl.cs
- SelectionEditor.cs
- StandardOleMarshalObject.cs
- BufferedOutputStream.cs
- CompModSwitches.cs
- X509CertificateTrustedIssuerElement.cs
- ProtocolViolationException.cs
- SmtpMail.cs
- uribuilder.cs
- SmtpException.cs
- UnsafePeerToPeerMethods.cs
- EqualityComparer.cs