ProviderFeature Class

IIS 7.0
 

Provides the base class for module providers.

Namespace:   Microsoft.Web.Management.Client.Extensions
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

System.Object
  Microsoft.Web.Management.Client.Extensions.ProviderFeature

[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
[SecurityPermissionAttribute(SecurityAction.InheritanceDemand, 
	Flags = SecurityPermissionFlag.UnmanagedCode)]
public abstract class ProviderFeature

NameDescription
System_CAPS_protmethodProviderFeature()

Initializes a new instance of the ProviderFeature class.

NameDescription
System_CAPS_pubpropertyConnectionStringAttributeName

Gets the name of the connection string to the provider database.

System_CAPS_pubpropertyConnectionStringRequired

Gets a value indicating whether a connection string is required to access the database.

System_CAPS_pubpropertyFeatureName

When overridden in a derived class, gets the name of the feature for the provider.

System_CAPS_pubpropertyProviderBaseType

When overridden in a derived class, gets the type of provider.

System_CAPS_pubpropertyProviderCollectionPropertyName

When overridden in a derived class, gets the name of the provider collection.

System_CAPS_pubpropertyProviderConfigurationSettingNames

When overridden in a derived class, gets a collection with the setting names for the provider.

System_CAPS_pubpropertySectionName

When overridden in a derived class, gets the configuration section that set up the provider.

System_CAPS_pubpropertySelectedProvider

When overridden in a derived class, gets the name of the selected provider.

System_CAPS_pubpropertySelectedProviderPropertyName

When overridden in a derived class, gets the name of the attribute that specifies the currently selected provider.

System_CAPS_pubpropertySettings

When overridden in a derived class, gets the configuration settings for the provider.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Modules that must configure providers have a feature that derives from this class. You can use this class to implement your own custom provider.

Once configured, the derived class will appear in the Feature drop-down box on the Providers page. The FeatureName property value will appear along with the predefined providers .NET Roles, .NET Users, and .NET Profile.

You can use the user interface (UI) in IIS Manager to add, edit, rename, or remove providers. Modifying a provider will result in a change to the Web.config file (located in the .NET Framework version 2.0 folder).

When you use this extensibility feature, you must also write a T:System.Web.Management.Client.Module object and a ModuleProvider object to register the ProviderFeature class with the extensibility manager. The example below displays the coding for these three classes along with a ProviderConfigurationSettings class needed to establish the configuration setting for the provider.

Notes to Inheritors:

When you inherit from the ProviderFeature class, you must override the following members:

The following example adds a provider (.NET Site Map) derived from a SiteMapProvider object. You will need the following four classes as part of your project.

SiteMapProviderConfigurationFeature

SiteMapProviderConfigurationFeatureModule

SiteMapProviderConfigurationFeatureModuleProvider

SiteMapProviderConfigurationSettings

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: