Code:
/ FX-1434 / FX-1434 / 1.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
- CryptoStream.cs
- cookiecollection.cs
- XPathNodeHelper.cs
- AutomationElement.cs
- DirectionalLight.cs
- CellTreeSimplifier.cs
- DataGridRelationshipRow.cs
- RectKeyFrameCollection.cs
- ProviderUtil.cs
- AuthenticationService.cs
- TreeViewDesigner.cs
- Int64Animation.cs
- XamlClipboardData.cs
- AnonymousIdentificationModule.cs
- DataSetFieldSchema.cs
- TdsValueSetter.cs
- QilIterator.cs
- SlipBehavior.cs
- StreamingContext.cs
- ChildChangedEventArgs.cs
- ACE.cs
- Collection.cs
- ModelProperty.cs
- ServiceHostFactory.cs
- PointAnimation.cs
- WebReferencesBuildProvider.cs
- ObjectViewListener.cs
- BitmapFrameDecode.cs
- MetaTable.cs
- SafeMarshalContext.cs
- AttributedMetaModel.cs
- Speller.cs
- SerialReceived.cs
- TreeNodeEventArgs.cs
- FunctionCommandText.cs
- DictionaryEntry.cs
- TabRenderer.cs
- Stackframe.cs
- ComplusEndpointConfigContainer.cs
- InternalConfigRoot.cs
- ClientSettingsSection.cs
- QueryExpr.cs
- SourceChangedEventArgs.cs
- SuppressMessageAttribute.cs
- MetabaseSettings.cs
- TrackBarRenderer.cs
- SerializerProvider.cs
- SystemIPGlobalStatistics.cs
- ExpressionEditorAttribute.cs
- SrgsSubset.cs
- PropertyPushdownHelper.cs
- SingleResultAttribute.cs
- _MultipleConnectAsync.cs
- WindowsAuthenticationEventArgs.cs
- TextShapeableCharacters.cs
- EntityTypeEmitter.cs
- RemoveStoryboard.cs
- OdbcEnvironment.cs
- ToolboxComponentsCreatedEventArgs.cs
- IteratorFilter.cs
- WebPartZoneCollection.cs
- TakeOrSkipQueryOperator.cs
- HtmlEmptyTagControlBuilder.cs
- OdbcConnectionFactory.cs
- DesignTimeXamlWriter.cs
- AccessDataSourceWizardForm.cs
- ErrorFormatterPage.cs
- _CookieModule.cs
- LinkClickEvent.cs
- XmlEncodedRawTextWriter.cs
- SQLUtility.cs
- FontStretch.cs
- AudioFileOut.cs
- MobileUserControlDesigner.cs
- RelationshipEnd.cs
- DataSourceControl.cs
- HebrewCalendar.cs
- DataGridViewCellValueEventArgs.cs
- TextSelectionProcessor.cs
- StructuralType.cs
- Parallel.cs
- WhitespaceSignificantCollectionAttribute.cs
- ZoomPercentageConverter.cs
- FormatterServices.cs
- DbProviderConfigurationHandler.cs
- webbrowsersite.cs
- AsynchronousChannel.cs
- DataGridViewIntLinkedList.cs
- CodeRemoveEventStatement.cs
- GridViewCommandEventArgs.cs
- PolicyUtility.cs
- ParameterElementCollection.cs
- MenuItemStyle.cs
- SystemNetworkInterface.cs
- UnsafeNativeMethods.cs
- ModulesEntry.cs
- WindowsGraphicsWrapper.cs
- CngKey.cs
- TextRenderingModeValidation.cs
- ConversionContext.cs