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
- InvalidateEvent.cs
- CursorInteropHelper.cs
- SQLBoolean.cs
- SamlAttributeStatement.cs
- SymmetricCryptoHandle.cs
- SmtpNegotiateAuthenticationModule.cs
- BackgroundWorker.cs
- StringDictionaryWithComparer.cs
- InvalidProgramException.cs
- ResourceExpressionBuilder.cs
- FamilyTypefaceCollection.cs
- ImpersonateTokenRef.cs
- PointKeyFrameCollection.cs
- ExpressionBuilder.cs
- OdbcErrorCollection.cs
- DynamicExpression.cs
- ClaimTypes.cs
- ObfuscateAssemblyAttribute.cs
- RestClientProxyHandler.cs
- Help.cs
- VersionPair.cs
- IsolatedStorageFile.cs
- XmlAttributeCache.cs
- SQLGuid.cs
- AvTrace.cs
- MissingSatelliteAssemblyException.cs
- SimplePropertyEntry.cs
- SecurityElement.cs
- Int32Storage.cs
- SafeNativeMethods.cs
- HttpHandlerAction.cs
- ZipPackage.cs
- FormClosedEvent.cs
- ProcessRequestAsyncResult.cs
- DbException.cs
- DrawingContextDrawingContextWalker.cs
- StrokeCollection.cs
- RowUpdatedEventArgs.cs
- UpdatePanelTriggerCollection.cs
- SqlUdtInfo.cs
- IPipelineRuntime.cs
- OutputScopeManager.cs
- ListView.cs
- DataSourceControlBuilder.cs
- safemediahandle.cs
- ObjectQuery.cs
- ListSurrogate.cs
- Authorization.cs
- TrackingProfileManager.cs
- Gdiplus.cs
- PathFigure.cs
- XNodeValidator.cs
- EdmRelationshipRoleAttribute.cs
- ParameterCollectionEditorForm.cs
- SettingsPropertyValue.cs
- DataSourceCache.cs
- PartialCachingControl.cs
- KeyNotFoundException.cs
- safex509handles.cs
- BrowserInteropHelper.cs
- DataGridViewTextBoxCell.cs
- KnownBoxes.cs
- ToolTipAutomationPeer.cs
- StylusButton.cs
- BitStream.cs
- PropertySet.cs
- SizeValueSerializer.cs
- ValueQuery.cs
- ContractInferenceHelper.cs
- ZoomPercentageConverter.cs
- CharacterBufferReference.cs
- StateFinalizationDesigner.cs
- CurrencyWrapper.cs
- WindowsRichEdit.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- SplitterPanel.cs
- AdapterDictionary.cs
- coordinatorfactory.cs
- TrackingServices.cs
- ApplicationTrust.cs
- PerformanceCounterPermissionAttribute.cs
- AttributeCollection.cs
- KnownTypesHelper.cs
- Control.cs
- ListControl.cs
- CompressionTracing.cs
- ApplicationCommands.cs
- SafeRightsManagementSessionHandle.cs
- TemplatedAdorner.cs
- TiffBitmapDecoder.cs
- Accessible.cs
- DataListGeneralPage.cs
- WindowCollection.cs
- CodeLabeledStatement.cs
- NamespaceEmitter.cs
- CompressEmulationStream.cs
- CancellationTokenSource.cs
- ColumnPropertiesGroup.cs
- RootBrowserWindow.cs
- XmlBinaryWriterSession.cs