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
- DataGridViewCell.cs
- InternalReceiveMessage.cs
- EllipseGeometry.cs
- XmlEntity.cs
- DispatcherTimer.cs
- DispatchRuntime.cs
- PathFigure.cs
- LineMetrics.cs
- LassoSelectionBehavior.cs
- PassportAuthentication.cs
- XmlSchemaProviderAttribute.cs
- XmlBindingWorker.cs
- AppendHelper.cs
- HttpClientProtocol.cs
- EntityCommand.cs
- QueryableDataSourceEditData.cs
- TimeManager.cs
- GridLengthConverter.cs
- DBDataPermission.cs
- hwndwrapper.cs
- DayRenderEvent.cs
- SafeSecurityHelper.cs
- DataObjectEventArgs.cs
- DragCompletedEventArgs.cs
- SQLBoolean.cs
- ContentControl.cs
- FixedSOMPage.cs
- RelOps.cs
- XmlTextReaderImplHelpers.cs
- _CookieModule.cs
- SqlNodeAnnotations.cs
- EngineSite.cs
- TraceHwndHost.cs
- DoubleAnimationUsingKeyFrames.cs
- securitymgrsite.cs
- IImplicitResourceProvider.cs
- CleanUpVirtualizedItemEventArgs.cs
- NativeMethodsOther.cs
- TriggerActionCollection.cs
- DataGridViewMethods.cs
- ToolStripSystemRenderer.cs
- QuaternionAnimationUsingKeyFrames.cs
- StringFunctions.cs
- GenericAuthenticationEventArgs.cs
- LineServicesCallbacks.cs
- HttpModulesInstallComponent.cs
- CodeMethodInvokeExpression.cs
- DragEvent.cs
- XmlSchemaInfo.cs
- AutoGeneratedField.cs
- ChannelSinkStacks.cs
- AuthenticationServiceManager.cs
- TableItemStyle.cs
- BaseConfigurationRecord.cs
- ObjectViewQueryResultData.cs
- NotConverter.cs
- FileChangesMonitor.cs
- TrustLevel.cs
- XLinq.cs
- WeakReferenceKey.cs
- CharacterMetrics.cs
- ThemeDirectoryCompiler.cs
- Membership.cs
- XXXInfos.cs
- ComponentResourceManager.cs
- RemoteWebConfigurationHostStream.cs
- WebPartManager.cs
- StylusButtonEventArgs.cs
- SoapExtensionReflector.cs
- PageEventArgs.cs
- StringStorage.cs
- XmlLinkedNode.cs
- GCHandleCookieTable.cs
- ZipIOExtraFieldZip64Element.cs
- JsonClassDataContract.cs
- CodeMemberField.cs
- SecurityContext.cs
- InputMethod.cs
- FontNamesConverter.cs
- IConvertible.cs
- LocalizeDesigner.cs
- ErrorHandler.cs
- ConfigXmlText.cs
- RealProxy.cs
- XmlILConstructAnalyzer.cs
- MediaCommands.cs
- DateTime.cs
- AnnouncementEndpoint.cs
- TypeConverterAttribute.cs
- ConfigurationSettings.cs
- TreeNodeBinding.cs
- BitArray.cs
- RsaSecurityKey.cs
- Header.cs
- OpenTypeLayoutCache.cs
- ComponentDispatcher.cs
- OpenFileDialog.cs
- SubclassTypeValidator.cs
- EditorPart.cs
- MouseActionConverter.cs