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
- BitStream.cs
- TextTrailingWordEllipsis.cs
- WmlFormAdapter.cs
- IxmlLineInfo.cs
- ToolStripItemClickedEventArgs.cs
- XmlWhitespace.cs
- WindowsScrollBarBits.cs
- RelatedPropertyManager.cs
- Table.cs
- XmlSubtreeReader.cs
- SafeReversePInvokeHandle.cs
- Pkcs9Attribute.cs
- CellParaClient.cs
- SplashScreenNativeMethods.cs
- CalendarKeyboardHelper.cs
- HtmlTableCell.cs
- HierarchicalDataSourceControl.cs
- CustomAttributeBuilder.cs
- ProtocolImporter.cs
- BasicExpressionVisitor.cs
- ChildTable.cs
- SetIndexBinder.cs
- TypeDependencyAttribute.cs
- ClientRolePrincipal.cs
- XmlObjectSerializerReadContext.cs
- ProviderBase.cs
- TemplateBindingExtensionConverter.cs
- ChtmlTextWriter.cs
- DataGridLengthConverter.cs
- SchemaElement.cs
- Rect.cs
- Int64Storage.cs
- TextServicesProperty.cs
- CommandValueSerializer.cs
- BinHexDecoder.cs
- HtmlEmptyTagControlBuilder.cs
- TextBox.cs
- ActivityStatusChangeEventArgs.cs
- CodeArgumentReferenceExpression.cs
- XsltInput.cs
- DataBoundControlAdapter.cs
- ListManagerBindingsCollection.cs
- GridEntry.cs
- XslVisitor.cs
- MimeMapping.cs
- ChannelBase.cs
- ClientBuildManager.cs
- ServicePointManager.cs
- WorkflowMarkupElementEventArgs.cs
- CurrentChangingEventArgs.cs
- KeyInterop.cs
- HighlightComponent.cs
- StringReader.cs
- securitymgrsite.cs
- ButtonBase.cs
- MbpInfo.cs
- URLMembershipCondition.cs
- ModelUtilities.cs
- SerialPinChanges.cs
- CTreeGenerator.cs
- PatternMatcher.cs
- CrossContextChannel.cs
- CDSsyncETWBCLProvider.cs
- ItemDragEvent.cs
- ReflectionUtil.cs
- HandlerBase.cs
- EditorPartCollection.cs
- DataBoundLiteralControl.cs
- QfeChecker.cs
- WeakKeyDictionary.cs
- IPCCacheManager.cs
- SoapFault.cs
- OrthographicCamera.cs
- CriticalExceptions.cs
- _FtpControlStream.cs
- XsltOutput.cs
- ConstraintStruct.cs
- TargetControlTypeCache.cs
- Int64Converter.cs
- PersonalizationProvider.cs
- COM2FontConverter.cs
- DefaultValueTypeConverter.cs
- SerializationException.cs
- File.cs
- WebPartMovingEventArgs.cs
- TextParentUndoUnit.cs
- BrowserCapabilitiesFactory.cs
- HttpRuntime.cs
- regiisutil.cs
- CompressionTransform.cs
- ConfigXmlWhitespace.cs
- ProvidePropertyAttribute.cs
- TypeSystem.cs
- WinFormsSecurity.cs
- AndMessageFilterTable.cs
- SqlCacheDependency.cs
- BackEase.cs
- RawAppCommandInputReport.cs
- LogReservationCollection.cs
- ErrorRuntimeConfig.cs