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
- PackageRelationship.cs
- ObjectConverter.cs
- DropSource.cs
- SystemResourceKey.cs
- ProcessInfo.cs
- SplayTreeNode.cs
- UnaryQueryOperator.cs
- FactoryRecord.cs
- SerialReceived.cs
- PerformanceCounterPermissionEntry.cs
- BitmapFrameEncode.cs
- AsymmetricKeyExchangeDeformatter.cs
- PageBreakRecord.cs
- DbConnectionPoolGroup.cs
- LoginName.cs
- Maps.cs
- DbXmlEnabledProviderManifest.cs
- ToolBarButton.cs
- ModelPropertyCollectionImpl.cs
- SafeSystemMetrics.cs
- DataGridViewColumnCollection.cs
- ScriptComponentDescriptor.cs
- FileRecordSequenceCompletedAsyncResult.cs
- AlignmentYValidation.cs
- HttpWebRequestElement.cs
- DataViewListener.cs
- DataBindingExpressionBuilder.cs
- UnsafeNativeMethodsPenimc.cs
- Choices.cs
- LiteralTextParser.cs
- WpfWebRequestHelper.cs
- PassportIdentity.cs
- XmlWriterTraceListener.cs
- HttpPostedFile.cs
- TargetPerspective.cs
- MemberCollection.cs
- Calendar.cs
- RuleInfoComparer.cs
- AcceleratedTokenProviderState.cs
- TypeSemantics.cs
- BezierSegment.cs
- EditorBrowsableAttribute.cs
- ParameterCollectionEditorForm.cs
- FormsIdentity.cs
- WindowsAuthenticationModule.cs
- DrawingVisualDrawingContext.cs
- QuerySafeNavigator.cs
- DeobfuscatingStream.cs
- KeysConverter.cs
- OleTxTransactionInfo.cs
- PrePostDescendentsWalker.cs
- TreeNodeBindingCollection.cs
- WindowsGraphicsCacheManager.cs
- MimeTypePropertyAttribute.cs
- OleDbSchemaGuid.cs
- QueryStringHandler.cs
- InternalSafeNativeMethods.cs
- SpStreamWrapper.cs
- ArcSegment.cs
- StorageModelBuildProvider.cs
- HtmlDocument.cs
- AccessorTable.cs
- TextRenderingModeValidation.cs
- DataGridCell.cs
- BasicExpressionVisitor.cs
- GridViewItemAutomationPeer.cs
- PointLight.cs
- TemplateBindingExpression.cs
- CannotUnloadAppDomainException.cs
- WebConfigurationHostFileChange.cs
- SQLRoleProvider.cs
- ConfigXmlDocument.cs
- RecordsAffectedEventArgs.cs
- DefaultMemberAttribute.cs
- RouteUrlExpressionBuilder.cs
- WhitespaceSignificantCollectionAttribute.cs
- MaterialCollection.cs
- AssemblyAttributesGoHere.cs
- ExplicitDiscriminatorMap.cs
- FunctionImportMapping.cs
- Privilege.cs
- TextEffect.cs
- x509store.cs
- HelpEvent.cs
- Menu.cs
- XslUrlEditor.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- UInt16.cs
- COM2ColorConverter.cs
- HttpResponseHeader.cs
- ProcessHostServerConfig.cs
- ManagementScope.cs
- _Rfc2616CacheValidators.cs
- NumericPagerField.cs
- XamlPathDataSerializer.cs
- PropertyMapper.cs
- DbUpdateCommandTree.cs
- GeometryValueSerializer.cs
- WebInvokeAttribute.cs
- COM2TypeInfoProcessor.cs