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
- Parsers.cs
- SqlCachedBuffer.cs
- RegistrySecurity.cs
- QilXmlWriter.cs
- RolePrincipal.cs
- XmlSchemaSimpleContentRestriction.cs
- GroupLabel.cs
- _FtpControlStream.cs
- MouseEvent.cs
- HashFinalRequest.cs
- CallbackValidatorAttribute.cs
- LostFocusEventManager.cs
- ComplexPropertyEntry.cs
- BindableTemplateBuilder.cs
- Emitter.cs
- PartialList.cs
- NCryptNative.cs
- WebPartCancelEventArgs.cs
- SelectorItemAutomationPeer.cs
- Aggregates.cs
- SqlVisitor.cs
- MSAAEventDispatcher.cs
- EmptyCollection.cs
- EUCJPEncoding.cs
- _LocalDataStore.cs
- ReadOnlyDictionary.cs
- ByteAnimationBase.cs
- HtmlCalendarAdapter.cs
- DictionaryGlobals.cs
- TextPenaltyModule.cs
- Registry.cs
- MenuEventArgs.cs
- UpDownBase.cs
- CachedPathData.cs
- WhileDesigner.xaml.cs
- ExpandCollapseProviderWrapper.cs
- WebPartConnectVerb.cs
- QuaternionAnimation.cs
- MethodBody.cs
- MenuItem.cs
- basemetadatamappingvisitor.cs
- TextWriter.cs
- MSAAEventDispatcher.cs
- QilStrConcat.cs
- TextPointer.cs
- DateTime.cs
- IHttpResponseInternal.cs
- LinearGradientBrush.cs
- TabletDevice.cs
- IndexOutOfRangeException.cs
- PropertyRecord.cs
- PhysicalOps.cs
- GroupBoxRenderer.cs
- BulletedListEventArgs.cs
- DrawingAttributeSerializer.cs
- DependencyPropertyHelper.cs
- DecimalConverter.cs
- LayoutDump.cs
- AttributeXamlType.cs
- DataGridViewRowsAddedEventArgs.cs
- BulletChrome.cs
- ISFClipboardData.cs
- SQLCharsStorage.cs
- DBConcurrencyException.cs
- ResourcePool.cs
- ManagementDateTime.cs
- DataTemplateKey.cs
- Vector3DKeyFrameCollection.cs
- ToolStripSeparatorRenderEventArgs.cs
- IIS7UserPrincipal.cs
- Section.cs
- CacheChildrenQuery.cs
- ACL.cs
- Highlights.cs
- ScaleTransform.cs
- ForceCopyBuildProvider.cs
- LinkArea.cs
- PointCollectionConverter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- HttpCachePolicy.cs
- WindowsListView.cs
- PerformanceCounterPermission.cs
- DurableInstanceProvider.cs
- CodeDefaultValueExpression.cs
- NaturalLanguageHyphenator.cs
- ObjectConverter.cs
- TextReader.cs
- WebBrowserSiteBase.cs
- XmlSchemaComplexContent.cs
- InkCanvasFeedbackAdorner.cs
- ContractMapping.cs
- MultipleViewPatternIdentifiers.cs
- FileUpload.cs
- ConditionalAttribute.cs
- ConfigurationException.cs
- TextFormatterContext.cs
- UnionExpr.cs
- cookieexception.cs
- GlyphRunDrawing.cs
- ToolStripDropDownDesigner.cs