RuleSettingsCollection.Item[] プロパティ

定義

BufferModeSettings オブジェクトを取得します。

オーバーロード

名前 説明
Item[Int32]

指定した数値インデックスにある RuleSettings オブジェクトを取得します。

Item[String]

コレクション内の指定したキーに基づいて RuleSettings オブジェクトを取得します。

Item[Int32]

指定した数値インデックスにある RuleSettings オブジェクトを取得します。

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

パラメーター

index
Int32

コレクション内の RuleSettings オブジェクトのインデックス。

プロパティ値

指定したインデックス位置にある RuleSettings オブジェクト。

例外

インデックスが範囲外です。

次のコード例は、 Item[] メソッドの使用方法を示しています。 このコード例は、 HealthMonitoringSection クラスに提供されるより大きな例の一部です。

ruleSetting = healthMonitoringSection.Rules[i];
ruleSetting = healthMonitoringSection.Rules(i)

注釈

指定したインデックス位置にある RuleSettings オブジェクトが存在する必要があります。

こちらもご覧ください

適用対象

Item[String]

コレクション内の指定したキーに基づいて RuleSettings オブジェクトを取得します。

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

パラメーター

key
String

コレクションに含まれる RuleSettings オブジェクトの名前。

プロパティ値

RuleSettings オブジェクト。

適用対象