Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DBNull.cs
- DoubleCollectionValueSerializer.cs
- InstanceDataCollectionCollection.cs
- BaseProcessProtocolHandler.cs
- Serializer.cs
- OutgoingWebRequestContext.cs
- RestHandler.cs
- RangeBaseAutomationPeer.cs
- FileUtil.cs
- PathGeometry.cs
- NamespaceQuery.cs
- DateTimeOffsetAdapter.cs
- TypedRowHandler.cs
- Geometry.cs
- StorageRoot.cs
- DependencyPropertyValueSerializer.cs
- LocalBuilder.cs
- BuilderPropertyEntry.cs
- OracleDataReader.cs
- CompilerGeneratedAttribute.cs
- CreateUserErrorEventArgs.cs
- DbConnectionStringBuilder.cs
- WindowsGrip.cs
- ListBindableAttribute.cs
- Single.cs
- GlyphsSerializer.cs
- ExtensionMethods.cs
- DrawTreeNodeEventArgs.cs
- Collection.cs
- GridViewUpdatedEventArgs.cs
- FlowDocumentFormatter.cs
- Rect3DConverter.cs
- ConnectionString.cs
- LinqDataView.cs
- SystemResourceHost.cs
- XslUrlEditor.cs
- ContainerUtilities.cs
- XmlSchemaExporter.cs
- AttachmentCollection.cs
- ThumbAutomationPeer.cs
- FixedDocumentSequencePaginator.cs
- OdbcConnectionOpen.cs
- StylusPlugInCollection.cs
- HtmlTableRowCollection.cs
- ApplicationServiceHelper.cs
- EditorPartCollection.cs
- WebControlParameterProxy.cs
- ContainerFilterService.cs
- ImpersonationContext.cs
- _CookieModule.cs
- SafeHandles.cs
- ToolStripButton.cs
- ArithmeticException.cs
- MergeFilterQuery.cs
- PrimitiveDataContract.cs
- ChildrenQuery.cs
- TemplatedMailWebEventProvider.cs
- OciLobLocator.cs
- EntityConnectionStringBuilderItem.cs
- DocumentSchemaValidator.cs
- GatewayIPAddressInformationCollection.cs
- RegexRunner.cs
- PaperSource.cs
- Int64Animation.cs
- RegexCharClass.cs
- BamlMapTable.cs
- MessageEventSubscriptionService.cs
- StylusPlugin.cs
- WebPartChrome.cs
- LinkDesigner.cs
- BamlTreeUpdater.cs
- DataColumnMapping.cs
- SecurityChannel.cs
- WorkflowElementDialog.cs
- DataGridViewColumnConverter.cs
- FusionWrap.cs
- TrackingProfile.cs
- Constraint.cs
- CngAlgorithmGroup.cs
- EntityDataSourceChangedEventArgs.cs
- ToolboxItemCollection.cs
- AssociationEndMember.cs
- RelationshipType.cs
- XsltArgumentList.cs
- ProjectionCamera.cs
- DataRowExtensions.cs
- Socket.cs
- Exceptions.cs
- DbModificationCommandTree.cs
- _SpnDictionary.cs
- ClockGroup.cs
- sqlstateclientmanager.cs
- MenuEventArgs.cs
- mansign.cs
- InheritanceAttribute.cs
- GridViewUpdateEventArgs.cs
- ContourSegment.cs
- DataGridViewButtonColumn.cs
- SerializationSectionGroup.cs
- ZipIOExtraField.cs