편집

다음을 통해 공유


EventMappingSettingsCollection.Item[] Property

Definition

Gets or sets the specified EventMappingSettings object.

Overloads

Item[Int32]

Gets or sets the EventMappingSettings object at the specified index location.

Item[String]

Gets the EventMappingSettings object based on the specified key in the collection.

Item[Int32]

Gets or sets the EventMappingSettings object at the specified index location.

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

Parameters

index
Int32

A valid index of an EventMappingSettings object in the collection.

Property Value

The EventMappingSettings object at the specified index, or null if there is no object at that index.

Examples

The following code example shows how to use the Item[] method. This code example is part of a larger example provided for the HealthMonitoringSection class.

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

See also

Applies to

Item[String]

Gets the EventMappingSettings object based on the specified key in the collection.

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

Parameters

key
String

The name of the EventMappingSettings object contained in the collection.

Property Value

An EventMappingSettings object.

Applies to