SettingsProviderCollection::Item Property (String^)

 

Gets the settings provider in the collection that matches the specified name.

Namespace:   System.Configuration
Assembly:  System (in System.dll)

public:
property SettingsProvider^ default[
	String^ name
] {
	SettingsProvider^ get(String^ name);
}

Parameters

name
Type: System::String^

A String containing the friendly name of the settings provider.

Property Value

Type: System.Configuration::SettingsProvider^

If found, the SettingsProvider whose name matches that specified by the name parameter; otherwise, null.

Exception Condition
ArgumentNullException

The name parameter is null.

NotSupportedException

The collection is read-only when setting this value.

You can make a SettingsProviderCollection read-only by using the SetReadOnly method. However, it is invalid to methods such as Add, Remove, and Clear on such a collection.

.NET Framework
Available since 2.0
Return to top
Show: