言語

ProfileSettingsCollection.Item[] プロパティ

定義

指定した ProfileSettings オブジェクトを取得または設定します。

オーバーロード

名前 説明
Item[Int32]

コレクション内の指定した数値インデックスにある ProfileSettings オブジェクトを取得または設定します。

Item[String]

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

Item[Int32]

コレクション内の指定した数値インデックスにある ProfileSettings オブジェクトを取得または設定します。

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

パラメーター

index
Int32

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

プロパティ値

指定したインデックス位置にある ProfileSettings オブジェクト。そのインデックスにオブジェクトがない場合は null

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

profileSetting = healthMonitoringSection.Profiles[i];
profileSetting = healthMonitoringSection.Profiles(i)

こちらもご覧ください

適用対象

Item[String]

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

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

パラメーター

key
String

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

プロパティ値

ProfileSettings オブジェクト。

適用対象