Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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]; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PriorityItem.cs
- Icon.cs
- GC.cs
- MarkedHighlightComponent.cs
- ConnectionStringsExpressionBuilder.cs
- SqlDataSourceView.cs
- XmlBaseReader.cs
- TimeoutException.cs
- ADConnectionHelper.cs
- PeerTransportListenAddressValidatorAttribute.cs
- RestClientProxyHandler.cs
- HwndAppCommandInputProvider.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ISessionStateStore.cs
- SafeRightsManagementEnvironmentHandle.cs
- CodeBinaryOperatorExpression.cs
- Viewport3DAutomationPeer.cs
- DiscreteKeyFrames.cs
- ExpressionList.cs
- BulletDecorator.cs
- DependencySource.cs
- WebPartTransformerCollection.cs
- FieldBuilder.cs
- Currency.cs
- EDesignUtil.cs
- QueryCacheEntry.cs
- OleDbError.cs
- Roles.cs
- CommentAction.cs
- CapabilitiesAssignment.cs
- LayoutExceptionEventArgs.cs
- TextAnchor.cs
- DoubleAnimationBase.cs
- DESCryptoServiceProvider.cs
- ToolStripOverflowButton.cs
- PrinterSettings.cs
- CqlBlock.cs
- CodeTypeReferenceSerializer.cs
- Container.cs
- SqlDataSource.cs
- Query.cs
- ServiceNotStartedException.cs
- Schema.cs
- Directory.cs
- ObjectQuery.cs
- UseLicense.cs
- EditingCommands.cs
- BoundPropertyEntry.cs
- Vector3DAnimationUsingKeyFrames.cs
- AssemblySettingAttributes.cs
- HandlerBase.cs
- DataServiceSaveChangesEventArgs.cs
- Form.cs
- TemplateContentLoader.cs
- TraceSection.cs
- SystemColors.cs
- ConstraintManager.cs
- NopReturnReader.cs
- UnknownWrapper.cs
- DeflateEmulationStream.cs
- DelayDesigner.cs
- OleDbInfoMessageEvent.cs
- Wrapper.cs
- TdsParser.cs
- DbMetaDataFactory.cs
- EntityDataSourceChangingEventArgs.cs
- XmlSchemaImport.cs
- WriteTimeStream.cs
- DoneReceivingAsyncResult.cs
- NamedPermissionSet.cs
- NullableIntMinMaxAggregationOperator.cs
- QilTypeChecker.cs
- MenuRendererStandards.cs
- PrintPreviewGraphics.cs
- PropertyGeneratedEventArgs.cs
- WebPartConnectionsConfigureVerb.cs
- ResourceProperty.cs
- RtfFormatStack.cs
- WebSysDescriptionAttribute.cs
- CurrencyWrapper.cs
- DigitShape.cs
- Security.cs
- xmlsaver.cs
- DelegateTypeInfo.cs
- DBPropSet.cs
- DrawingAttributeSerializer.cs
- DrawListViewSubItemEventArgs.cs
- ScrollableControl.cs
- ImageButton.cs
- DataGridViewCheckBoxColumn.cs
- StrongNamePublicKeyBlob.cs
- As.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- RegionData.cs
- SmtpNegotiateAuthenticationModule.cs
- PhysicalFontFamily.cs
- HttpInputStream.cs
- WindowsGraphicsWrapper.cs
- SolidColorBrush.cs
- ColorTransformHelper.cs