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
- SystemBrushes.cs
- DialogBaseForm.cs
- ShadowGlyph.cs
- LoginDesigner.cs
- BaseDataBoundControl.cs
- CheckBoxList.cs
- HandlerBase.cs
- OracleFactory.cs
- ChannelSinkStacks.cs
- Bezier.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ToolStripItemClickedEventArgs.cs
- xamlnodes.cs
- RectAnimation.cs
- PackagingUtilities.cs
- CurrencyManager.cs
- ClockController.cs
- util.cs
- JavaScriptObjectDeserializer.cs
- HttpClientChannel.cs
- RequestResizeEvent.cs
- SmtpLoginAuthenticationModule.cs
- MemoryFailPoint.cs
- WindowsSolidBrush.cs
- ChangePasswordDesigner.cs
- EventDescriptorCollection.cs
- DataGridViewBand.cs
- SoapAttributeAttribute.cs
- StringBuilder.cs
- IncrementalReadDecoders.cs
- PrivilegedConfigurationManager.cs
- SqlTransaction.cs
- UICuesEvent.cs
- DateTimeValueSerializerContext.cs
- PointIndependentAnimationStorage.cs
- ProtocolViolationException.cs
- Debug.cs
- FileDialog.cs
- TraceSource.cs
- HttpCachePolicy.cs
- UrlAuthFailedErrorFormatter.cs
- XPathDocumentBuilder.cs
- _RequestCacheProtocol.cs
- SecurityKeyType.cs
- SessionPageStatePersister.cs
- xmlfixedPageInfo.cs
- ContextProperty.cs
- ConfigurationPropertyAttribute.cs
- RegistryDataKey.cs
- ServiceHandle.cs
- EnumType.cs
- DesignerSerializationOptionsAttribute.cs
- XPathAncestorIterator.cs
- Stack.cs
- PageParserFilter.cs
- ClonableStack.cs
- IImplicitResourceProvider.cs
- DescendantQuery.cs
- ExternalCalls.cs
- RuleSetReference.cs
- Expressions.cs
- IPipelineRuntime.cs
- AsyncOperation.cs
- StatusBarDrawItemEvent.cs
- Message.cs
- SmiEventSink_Default.cs
- DateTimeUtil.cs
- CallbackException.cs
- SrgsElementFactoryCompiler.cs
- ResourceExpressionBuilder.cs
- PersistencePipeline.cs
- HtmlEncodedRawTextWriter.cs
- ApplicationInterop.cs
- IISMapPath.cs
- FormParameter.cs
- EditorPartChrome.cs
- SemanticValue.cs
- FocusChangedEventArgs.cs
- UnauthorizedWebPart.cs
- RuntimeEnvironment.cs
- AuthenticationService.cs
- RuleSetDialog.cs
- DeviceContext2.cs
- VisualTarget.cs
- NameTable.cs
- ChannelCacheSettings.cs
- PixelFormats.cs
- ConfigXmlWhitespace.cs
- SessionPageStateSection.cs
- DelegateTypeInfo.cs
- ContactManager.cs
- SiblingIterators.cs
- DebugTrace.cs
- Psha1DerivedKeyGeneratorHelper.cs
- Scalars.cs
- FileUtil.cs
- InkCanvasFeedbackAdorner.cs
- Substitution.cs
- NamedObject.cs
- Image.cs