SchemeSettingElementCollection.Item[] Property

Definition

Accesses an instance of the SchemeSettingElementCollection class.

Overloads

Item[Int32]

Gets an item at the specified index in the SchemeSettingElementCollection collection.

Item[String]

Gets an item from the SchemeSettingElementCollection collection.

Item[Int32]

Source:
SchemeSettingElementCollection.cs
Source:
SchemeSettingElementCollection.cs
Source:
SchemeSettingElementCollection.cs

Gets an item at the specified index in the SchemeSettingElementCollection collection.

public System.Configuration.SchemeSettingElement this[int index] { get; }

Parameters

index
Int32

The index of the SchemeSettingElement to return.

Property Value

The specified SchemeSettingElement.

Exceptions

The index parameter is less than zero.

-or-

The item specified by the parameter is null or has been removed.

Remarks

Use the Item[] property to get or set a specified SchemeSettingElement object contained within this SchemeSettingElementCollection class.

See also

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

Item[String]

Source:
SchemeSettingElementCollection.cs
Source:
SchemeSettingElementCollection.cs
Source:
SchemeSettingElementCollection.cs

Gets an item from the SchemeSettingElementCollection collection.

public System.Configuration.SchemeSettingElement this[string name] { get; }

Parameters

name
String

A string reference to the SchemeSettingElement object within the collection.

Property Value

A SchemeSettingElement object contained in the collection.

Remarks

The return value is null if the item cannot be found or has been removed.

See also

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9