Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// 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]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FunctionQuery.cs
- BindingMemberInfo.cs
- SettingsPropertyValueCollection.cs
- RenderCapability.cs
- PagerSettings.cs
- System.Data_BID.cs
- QilReplaceVisitor.cs
- StopStoryboard.cs
- ApplicationSecurityInfo.cs
- RegisteredExpandoAttribute.cs
- LockingPersistenceProvider.cs
- ModelFunction.cs
- WebPartConnectionCollection.cs
- FreeFormPanel.cs
- RtfControls.cs
- UDPClient.cs
- MediaElement.cs
- BindingManagerDataErrorEventArgs.cs
- CollectionAdapters.cs
- AutoScrollHelper.cs
- Tuple.cs
- SqlClientPermission.cs
- SchemaCollectionPreprocessor.cs
- CommentEmitter.cs
- AssemblyBuilder.cs
- GridEntry.cs
- CommonDialog.cs
- NameValueFileSectionHandler.cs
- ComplexPropertyEntry.cs
- DataGridViewBand.cs
- DigitalSignature.cs
- CodeCompileUnit.cs
- ServiceMetadataContractBehavior.cs
- XmlMemberMapping.cs
- Size.cs
- HtmlImage.cs
- GlyphRun.cs
- InkSerializer.cs
- AttributeSetAction.cs
- XmlRootAttribute.cs
- PresentationTraceSources.cs
- AppSettingsExpressionBuilder.cs
- AutomationPropertyInfo.cs
- ParallelForEach.cs
- DataTableMappingCollection.cs
- RegularExpressionValidator.cs
- SmtpNetworkElement.cs
- PerformanceCounterCategory.cs
- XmlMemberMapping.cs
- XPathMultyIterator.cs
- SQLDoubleStorage.cs
- FileSecurity.cs
- HostProtectionPermission.cs
- OperationAbortedException.cs
- BaseHashHelper.cs
- ContextDataSourceView.cs
- AutoGeneratedField.cs
- X509InitiatorCertificateClientElement.cs
- StickyNoteContentControl.cs
- TrustManagerPromptUI.cs
- ObjectDataProvider.cs
- ScriptModule.cs
- MulticastNotSupportedException.cs
- ListViewItemSelectionChangedEvent.cs
- Calendar.cs
- SoapIgnoreAttribute.cs
- ToolboxBitmapAttribute.cs
- StubHelpers.cs
- RequestQueue.cs
- ListDictionaryInternal.cs
- safemediahandle.cs
- FloatSumAggregationOperator.cs
- UniqueSet.cs
- FactorySettingsElement.cs
- CommonObjectSecurity.cs
- Char.cs
- TypeReference.cs
- CodeMemberProperty.cs
- TerminateSequence.cs
- FocusChangedEventArgs.cs
- SizeAnimationClockResource.cs
- EventLogPermissionEntry.cs
- SessionState.cs
- ProtectedConfigurationProviderCollection.cs
- XmlTypeMapping.cs
- mda.cs
- WSIdentityFaultException.cs
- XmlUtf8RawTextWriter.cs
- hebrewshape.cs
- HandlerFactoryCache.cs
- OneWayChannelFactory.cs
- listitem.cs
- DataGridViewLayoutData.cs
- BindingList.cs
- DocumentViewerBaseAutomationPeer.cs
- ReadOnlyHierarchicalDataSource.cs
- XslAst.cs
- FrameworkContentElement.cs
- DetailsViewPageEventArgs.cs
- XmlTextWriter.cs