ProviderFeature Class
Provides the base class for module providers.
Assembly: Microsoft.Web.Management (in Microsoft.Web.Management.dll)
| Name | Description | |
|---|---|---|
![]() | ProviderFeature() | Initializes a new instance of the ProviderFeature class. |
| Name | Description | |
|---|---|---|
![]() | ConnectionStringAttributeName | Gets the name of the connection string to the provider database. |
![]() | ConnectionStringRequired | Gets a value indicating whether a connection string is required to access the database. |
![]() | FeatureName | When overridden in a derived class, gets the name of the feature for the provider. |
![]() | ProviderBaseType | When overridden in a derived class, gets the type of provider. |
![]() | ProviderCollectionPropertyName | When overridden in a derived class, gets the name of the provider collection. |
![]() | ProviderConfigurationSettingNames | When overridden in a derived class, gets a collection with the setting names for the provider. |
![]() | SectionName | When overridden in a derived class, gets the configuration section that set up the provider. |
![]() | SelectedProvider | When overridden in a derived class, gets the name of the selected provider. |
![]() | SelectedProviderPropertyName | When overridden in a derived class, gets the name of the attribute that specifies the currently selected provider. |
![]() | Settings | When overridden in a derived class, gets the configuration settings for the provider. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (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.


