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
- DuplicateWaitObjectException.cs
- XmlNamespaceDeclarationsAttribute.cs
- ReadContentAsBinaryHelper.cs
- XmlCharacterData.cs
- StylusPointPropertyInfoDefaults.cs
- StrokeFIndices.cs
- EmptyCollection.cs
- DragDeltaEventArgs.cs
- BookmarkWorkItem.cs
- ConversionValidationRule.cs
- SByteStorage.cs
- SEHException.cs
- HistoryEventArgs.cs
- UpdateCommand.cs
- ACE.cs
- FormClosingEvent.cs
- ConfigXmlWhitespace.cs
- DateTimeOffset.cs
- MDIClient.cs
- ServiceProviders.cs
- TextServicesCompartment.cs
- FileDialog_Vista_Interop.cs
- XmlNodeReader.cs
- HttpResponseWrapper.cs
- ImageDrawing.cs
- TokenBasedSet.cs
- GridViewRow.cs
- ContextDataSourceView.cs
- RTTypeWrapper.cs
- Collection.cs
- SmtpLoginAuthenticationModule.cs
- TrailingSpaceComparer.cs
- EntityRecordInfo.cs
- GradientSpreadMethodValidation.cs
- MobileFormsAuthentication.cs
- ScriptResourceAttribute.cs
- SqlXml.cs
- SettingsPropertyCollection.cs
- ValueUtilsSmi.cs
- PixelShader.cs
- SiteMapDataSourceDesigner.cs
- ValidationError.cs
- ConfigsHelper.cs
- DropDownList.cs
- AppLevelCompilationSectionCache.cs
- OleDbCommand.cs
- Helper.cs
- NegotiateStream.cs
- MetaModel.cs
- cookie.cs
- Hex.cs
- FixedNode.cs
- Evaluator.cs
- DescendantQuery.cs
- ImageListUtils.cs
- RootBuilder.cs
- DataGridViewAddColumnDialog.cs
- PreloadedPackages.cs
- Calendar.cs
- SqlBuffer.cs
- TimeManager.cs
- IHttpResponseInternal.cs
- InternalConfigRoot.cs
- InkCollectionBehavior.cs
- GestureRecognitionResult.cs
- ToolStripDropDownItem.cs
- MessageBox.cs
- SerializationObjectManager.cs
- DeobfuscatingStream.cs
- XmlEnumAttribute.cs
- NavigationPropertyEmitter.cs
- OdbcCommandBuilder.cs
- DefaultTextStore.cs
- XmlSchemaSimpleContentExtension.cs
- DiffuseMaterial.cs
- EditorPartChrome.cs
- SHA512.cs
- TextTreeTextElementNode.cs
- ColorInterpolationModeValidation.cs
- AttachedPropertyBrowsableAttribute.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- XamlTypeMapper.cs
- TreeViewHitTestInfo.cs
- ClientSponsor.cs
- HttpException.cs
- Rect.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- TimeSpan.cs
- CellTreeNode.cs
- TextComposition.cs
- SharedPerformanceCounter.cs
- SerializationObjectManager.cs
- CfgSemanticTag.cs
- PopOutPanel.cs
- XDRSchema.cs
- TextMetrics.cs
- UriParserTemplates.cs
- FixedHighlight.cs
- LineServicesRun.cs
- SimpleWebHandlerParser.cs