Language

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 オブジェクト。

適用対象