Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //----------------------------------------------------------------------------- /* * 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RPIdentityRequirement.cs
- LineMetrics.cs
- RuleValidation.cs
- DataGridViewColumnStateChangedEventArgs.cs
- QilTargetType.cs
- StorageAssociationTypeMapping.cs
- DoWorkEventArgs.cs
- HttpCachePolicyBase.cs
- MetadataItemSerializer.cs
- ResourcePermissionBaseEntry.cs
- FieldReference.cs
- PerformanceCounterPermission.cs
- SmtpTransport.cs
- WindowsListViewGroupHelper.cs
- GeneratedCodeAttribute.cs
- RegexFCD.cs
- MimeWriter.cs
- ReadOnlyDictionary.cs
- DefaultWorkflowLoaderService.cs
- MsmqAppDomainProtocolHandler.cs
- CryptoConfig.cs
- PkcsMisc.cs
- DataServiceBehavior.cs
- TransactionManager.cs
- TrackingDataItemValue.cs
- ListViewUpdatedEventArgs.cs
- DataObjectPastingEventArgs.cs
- XmlObjectSerializerContext.cs
- OdbcConnectionOpen.cs
- ChooseAction.cs
- CodeDomSerializerException.cs
- ValidateNames.cs
- MachineKeySection.cs
- UserPersonalizationStateInfo.cs
- ErrorItem.cs
- cookie.cs
- DataGridColumn.cs
- UserNameSecurityTokenAuthenticator.cs
- GetPageCompletedEventArgs.cs
- SortedList.cs
- ImageListUtils.cs
- EpmContentDeSerializer.cs
- DataTemplateKey.cs
- TextElementAutomationPeer.cs
- xsdvalidator.cs
- FormViewUpdatedEventArgs.cs
- DataGridViewUtilities.cs
- APCustomTypeDescriptor.cs
- TextCompositionEventArgs.cs
- ScriptingRoleServiceSection.cs
- XmlSchemaAnnotated.cs
- ProfessionalColorTable.cs
- EdgeModeValidation.cs
- SelectionPatternIdentifiers.cs
- MappedMetaModel.cs
- GACMembershipCondition.cs
- wmiprovider.cs
- DefaultTraceListener.cs
- CodeStatementCollection.cs
- PropertyGridEditorPart.cs
- Typography.cs
- GridSplitter.cs
- SingleSelectRootGridEntry.cs
- StylusPointProperties.cs
- ChangePassword.cs
- ToolStripItem.cs
- TypedTableBase.cs
- ContainerActivationHelper.cs
- StrokeNodeEnumerator.cs
- RectangleGeometry.cs
- ClientTargetCollection.cs
- XamlSerializerUtil.cs
- UnauthorizedAccessException.cs
- Speller.cs
- input.cs
- MetadataSerializer.cs
- WmiPutTraceRecord.cs
- HttpRequest.cs
- ServicePointManager.cs
- FlatButtonAppearance.cs
- TextSimpleMarkerProperties.cs
- ControlType.cs
- DateTime.cs
- Calendar.cs
- GridEntry.cs
- Int16AnimationBase.cs
- ParameterBinding.cs
- Stack.cs
- ZipArchive.cs
- Calendar.cs
- TextPenaltyModule.cs
- DnsElement.cs
- CookielessHelper.cs
- HttpProfileBase.cs
- Pts.cs
- InternalUserCancelledException.cs
- SerializationAttributes.cs
- ServiceModelExtensionCollectionElement.cs
- BamlReader.cs
- BrushValueSerializer.cs