ProfileSettingsCollection.Item[] プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した 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 オブジェクト。