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
- RefType.cs
- Native.cs
- DataContractSerializerOperationFormatter.cs
- Rfc2898DeriveBytes.cs
- TopClause.cs
- ElementMarkupObject.cs
- HebrewNumber.cs
- XmlArrayAttribute.cs
- COM2IDispatchConverter.cs
- Wizard.cs
- Adorner.cs
- Tokenizer.cs
- followingsibling.cs
- SourceChangedEventArgs.cs
- TextElementEnumerator.cs
- DocumentStream.cs
- WindowsFormsHostPropertyMap.cs
- LayoutManager.cs
- IPPacketInformation.cs
- NetStream.cs
- DataGridViewCellStateChangedEventArgs.cs
- Timer.cs
- ManipulationVelocities.cs
- TimelineClockCollection.cs
- ProviderConnectionPointCollection.cs
- OutOfMemoryException.cs
- AppDomain.cs
- CodeCompileUnit.cs
- TypePropertyEditor.cs
- COM2PictureConverter.cs
- AssemblyBuilder.cs
- TranslateTransform3D.cs
- CommandTreeTypeHelper.cs
- CatalogZoneBase.cs
- SynchronizedRandom.cs
- VisualStyleInformation.cs
- SystemEvents.cs
- XMLUtil.cs
- CodeCastExpression.cs
- UrlMappingsModule.cs
- Keywords.cs
- InfoCardUIAgent.cs
- ProtocolsConfigurationHandler.cs
- OracleBoolean.cs
- DataSourceProvider.cs
- SqlDataReaderSmi.cs
- WindowsEditBoxRange.cs
- QuaternionIndependentAnimationStorage.cs
- FileSystemWatcher.cs
- DecimalFormatter.cs
- SystemTcpConnection.cs
- FlowLayoutPanel.cs
- Transform.cs
- RepeatInfo.cs
- Point3DCollection.cs
- AttributeCollection.cs
- TypeConverter.cs
- DESCryptoServiceProvider.cs
- CryptoProvider.cs
- DelegatingConfigHost.cs
- ColumnCollection.cs
- bidPrivateBase.cs
- Decoder.cs
- DataKey.cs
- RouteParser.cs
- TdsParserStateObject.cs
- ZipIOModeEnforcingStream.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- HttpCapabilitiesEvaluator.cs
- OracleParameter.cs
- ImageConverter.cs
- ToolBar.cs
- DataServiceStreamResponse.cs
- ToolStripScrollButton.cs
- CompositeCollectionView.cs
- SystemIPGlobalStatistics.cs
- ConnectionStringSettings.cs
- SignatureToken.cs
- OutputCacheSettingsSection.cs
- CompoundFileStreamReference.cs
- LabelEditEvent.cs
- ConnectionStringSettingsCollection.cs
- ClientUrlResolverWrapper.cs
- TextDecorationCollection.cs
- ViewKeyConstraint.cs
- RIPEMD160.cs
- DesignerObject.cs
- NegatedCellConstant.cs
- DrawingCollection.cs
- InputMethodStateChangeEventArgs.cs
- RequestChannelBinder.cs
- CancelEventArgs.cs
- Privilege.cs
- DeferredTextReference.cs
- ClientScriptItemCollection.cs
- InArgumentConverter.cs
- ReadOnlyPermissionSet.cs
- SqlOuterApplyReducer.cs
- CaseExpr.cs
- BasicKeyConstraint.cs