语言

EventMappingSettingsCollection.Item[] 属性

定义

获取或设置指定的 EventMappingSettings 对象。

重载

名称 说明
Item[Int32]

获取或设置 EventMappingSettings 位于指定索引位置的对象。

Item[String]

EventMappingSettings基于集合中的指定键获取对象。

Item[Int32]

获取或设置 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

参数

index
Int32

集合中对象的有效索引 EventMappingSettings 。

属性值

EventMappingSettings指定索引处的对象,或者null该索引处没有对象。

示例

下面的代码示例演示如何使用 Item[] 该方法。 该代码示例是 HealthMonitoringSection 类中的一个较大示例的一部分。

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

另请参阅

适用于

Item[String]

EventMappingSettings基于集合中的指定键获取对象。

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

参数

key
String

集合中包含的对象的名称 EventMappingSettings 。

属性值

一个 EventMappingSettings 对象。

适用于