ServiceModelConfigurationElementCollection<ConfigurationElementType>.Item[] Właściwość
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Pobiera lub ustawia właściwość, atrybut lub element podrzędny tego ConfigurationElement obiektu.
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. |
Pobiera lub ustawia właściwość, atrybut lub element ConfigurationElement podrzędny obiektu z określonym indeksem.
public:
property ConfigurationElementType default[int] { ConfigurationElementType get(int index); void set(int index, ConfigurationElementType value); };
public ConfigurationElementType this[int index] { get; set; }
member this.Item(int) : 'ConfigurationElementType with get, set
Default Public Property Item(index As Integer) As ConfigurationElementType
Parametry
- index
- Int32
Indeks elementu do uzyskania dostępu.
Wartość właściwości
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 |
Pobiera lub ustawia właściwość, atrybut lub element ConfigurationElement podrzędny obiektu z określonym kluczem.
public:
virtual property ConfigurationElementType default[System::Object ^] { ConfigurationElementType get(System::Object ^ key); void set(System::Object ^ key, ConfigurationElementType value); };
public virtual ConfigurationElementType this[object key] { get; set; }
member this.Item(obj) : 'ConfigurationElementType with get, set
Default Public Overridable Property Item(key As Object) As ConfigurationElementType
Parametry
- key
- Object
Klucz elementu do uzyskania dostępu.
Wartość właściwości
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 |
Opinia o produkcie .NET
.NET to projekt typu open source. Wybierz link, aby przekazać opinię: