Sdílet prostřednictvím


EventMappingSettingsCollection.Item[] Vlastnost

Definice

Získá nebo nastaví zadaný EventMappingSettings objekt.

Přetížení

Item[Int32]

Získá nebo nastaví objekt v zadaném umístění indexu EventMappingSettings .

Item[String]

EventMappingSettings Získá objekt na základě zadaného klíče v kolekci.

Item[Int32]

Získá nebo nastaví objekt v zadaném umístění indexu EventMappingSettings .

public:
 property System::Web::Configuration::EventMappingSettings ^ default[int] { System::Web::Configuration::EventMappingSettings ^ get(int index); void set(int index, System::Web::Configuration::EventMappingSettings ^ value); };
public System.Web.Configuration.EventMappingSettings this[int index] { get; set; }
member this.Item(int) : System.Web.Configuration.EventMappingSettings with get, set
Default Public Property Item(index As Integer) As EventMappingSettings

Parametry

index
Int32

Platný index EventMappingSettings objektu v kolekci.

Hodnota vlastnosti

EventMappingSettings

Objekt EventMappingSettings v zadaném indexu nebo null pokud v daném indexu neexistuje žádný objekt.

Příklady

Následující příklad kódu ukazuje, jak použít metodu Item[] . Tento příklad kódu je součástí většího příkladu zadaného HealthMonitoringSection pro třídu.

eventMappingSetting = healthMonitoringSection.EventMappings[i];
eventMappingSetting = healthMonitoringSection.EventMappings(i)

Viz také

Platí pro

Item[String]

EventMappingSettings Získá objekt na základě zadaného klíče v kolekci.

public:
 property System::Web::Configuration::EventMappingSettings ^ default[System::String ^] { System::Web::Configuration::EventMappingSettings ^ get(System::String ^ key); };
public System.Web.Configuration.EventMappingSettings this[string key] { get; }
member this.Item(string) : System.Web.Configuration.EventMappingSettings
Default Public ReadOnly Property Item(key As String) As EventMappingSettings

Parametry

key
String

Název objektu EventMappingSettings obsaženého v kolekci.

Hodnota vlastnosti

EventMappingSettings

Objekt EventMappingSettings.

Platí pro