Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Profile / ProfileProvider.cs / 1305376 / 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; 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); } 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]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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; 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); } 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]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _OSSOCK.cs
- _FtpControlStream.cs
- WsdlBuildProvider.cs
- MatrixValueSerializer.cs
- TextRangeSerialization.cs
- PackageDocument.cs
- StandardToolWindows.cs
- CommandBindingCollection.cs
- LockCookie.cs
- Int16.cs
- HeaderedContentControl.cs
- SettingsPropertyWrongTypeException.cs
- TextTreeRootTextBlock.cs
- WebScriptMetadataMessage.cs
- CodeAccessPermission.cs
- invalidudtexception.cs
- XmlBuffer.cs
- NaturalLanguageHyphenator.cs
- TemplateColumn.cs
- MultiSelectRootGridEntry.cs
- XmlResolver.cs
- DateRangeEvent.cs
- DateTimeHelper.cs
- SwitchLevelAttribute.cs
- NestedContainer.cs
- ComponentEditorPage.cs
- StaticTextPointer.cs
- VersionConverter.cs
- ListViewCommandEventArgs.cs
- DataBinder.cs
- GridItemPatternIdentifiers.cs
- PriorityRange.cs
- JsonReaderDelegator.cs
- HttpResponse.cs
- RC2CryptoServiceProvider.cs
- FormsAuthentication.cs
- DictionaryBase.cs
- LicenseException.cs
- NameValueCache.cs
- IdentitySection.cs
- Menu.cs
- ParamArrayAttribute.cs
- CodeEventReferenceExpression.cs
- BasePattern.cs
- LinkedResource.cs
- ByteAnimationBase.cs
- Point3DCollection.cs
- MarkupExtensionParser.cs
- HandleCollector.cs
- ContractTypeNameCollection.cs
- ObjectQuery.cs
- Soap12ProtocolImporter.cs
- SharedStatics.cs
- ListViewUpdatedEventArgs.cs
- FormViewInsertEventArgs.cs
- ValidatorCompatibilityHelper.cs
- lengthconverter.cs
- Point4DValueSerializer.cs
- Brush.cs
- DataTableMapping.cs
- HttpHostedTransportConfiguration.cs
- NullableConverter.cs
- DesignerLoader.cs
- CompilationLock.cs
- BuildProvidersCompiler.cs
- CheckBoxBaseAdapter.cs
- GPRECT.cs
- SspiHelper.cs
- CacheChildrenQuery.cs
- PropertyItemInternal.cs
- SizeAnimationClockResource.cs
- MenuItemBindingCollection.cs
- HuffCodec.cs
- InstanceLockTracking.cs
- NativeActivity.cs
- CollectionMarkupSerializer.cs
- WindowsSpinner.cs
- ScaleTransform3D.cs
- ButtonBaseAutomationPeer.cs
- InputLangChangeRequestEvent.cs
- WindowsScrollBar.cs
- CompiledRegexRunner.cs
- MenuAutomationPeer.cs
- Help.cs
- IDictionary.cs
- CellTreeNodeVisitors.cs
- SqlEnums.cs
- UIElement.cs
- RecordConverter.cs
- ExcCanonicalXml.cs
- ScriptControlManager.cs
- HttpApplicationStateWrapper.cs
- SlotInfo.cs
- AddInEnvironment.cs
- BufferBuilder.cs
- ProjectionCamera.cs
- XmlSchemaProviderAttribute.cs
- ImportCatalogPart.cs
- RewritingSimplifier.cs
- DataGridSortCommandEventArgs.cs