ServiceModelConfigurationElementCollection<ConfigurationElementType>.Item[] Właściwość

Definicja

Pobiera lub ustawia właściwość, atrybut lub element podrzędny tego ConfigurationElement obiektu.

Przeciążenia

Item[Int32]

Pobiera lub ustawia właściwość, atrybut lub element ConfigurationElement podrzędny obiektu z określonym indeksem.

Item[Object]

Pobiera lub ustawia właściwość, atrybut lub element ConfigurationElement podrzędny obiektu z określonym kluczem.

Item[Int32]

Pobiera lub ustawia właściwość, atrybut lub element ConfigurationElement podrzędny obiektu z określonym indeksem.

C#
public ConfigurationElementType this[int index] { get; set; }

Parametry

index
Int32

Indeks elementu do uzyskania dostępu.

Wartość właściwości

ConfigurationElementType

Element znajdujący się w określonym indeksie w kolekcji.

Wyjątki

index to null.

Dotyczy

.NET Framework 4.8.1 i inne wersje
Produkt Wersje
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Item[Object]

Pobiera lub ustawia właściwość, atrybut lub element ConfigurationElement podrzędny obiektu z określonym kluczem.

C#
public virtual ConfigurationElementType this[object key] { get; set; }

Parametry

key
Object

Klucz elementu do uzyskania dostępu.

Wartość właściwości

ConfigurationElementType

Element znajdujący się w określonym kluczu w kolekcji.

Wyjątki

key to null.

key nie można odnaleźć.

Dotyczy

.NET Framework 4.8.1 i inne wersje
Produkt Wersje
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1