EventMappingSettingsCollection.Item[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定指定的 EventMappingSettings 物件。
多載
| 名稱 | Description |
|---|---|
| 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 。