Share via


ProviderFeature.SelectedProvider Property

Definition

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

public:
 abstract property System::String ^ SelectedProvider { System::String ^ get(); };
public abstract string SelectedProvider { get; }
member this.SelectedProvider : string
Public MustOverride ReadOnly Property SelectedProvider As String

Property Value

The currently selected provider, or Empty if no provider is selected.

Examples

The following example sets the selected provider on IIS Manager to the FeatureName property. This code example is part of a larger example provided for the ProviderFeature class.

public SiteMapProviderConfigurationFeature()
{
    _selectedProvider = FeatureName;
}
// The currently selected provider. 
public override string SelectedProvider 
{
    get {
        if (_selectedProvider == null)
        {
            return String.Empty;
        }
        return _selectedProvider; }
}

Remarks

The name can be from the Feature drop-down box or it can be provided programmatically.

Applies to