TrustLevelCollection.Item[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得物件內TrustLevel指定的TrustLevelCollection項目。
多載
| 名稱 | Description |
|---|---|
| Item[Int32] |
取得或設定 TrustLevel 物件中 TrustLevelCollection 指定的索引。 |
| Item[String] |
取得 TrustLevel 指定索引的物件。 |
Item[Int32]
取得或設定 TrustLevel 物件中 TrustLevelCollection 指定的索引。
public:
property System::Web::Configuration::TrustLevel ^ default[int] { System::Web::Configuration::TrustLevel ^ get(int index); void set(int index, System::Web::Configuration::TrustLevel ^ value); };
public System.Web.Configuration.TrustLevel this[int index] { get; set; }
member this.Item(int) : System.Web.Configuration.TrustLevel with get, set
Default Public Property Item(index As Integer) As TrustLevel
參數
- index
- Int32
的數值索引 TrustLevel。
屬性值
TrustLevel A在指定索引上。
備註
如果 TrustLevel 在指定的索引 TrustLevel 上有物件,該物件會被移除並新增一個。 若索引中無 TrustLevel 物件,則新增一個物件。
適用於
Item[String]
取得 TrustLevel 指定索引的物件。
public:
property System::Web::Configuration::TrustLevel ^ default[System::String ^] { System::Web::Configuration::TrustLevel ^ get(System::String ^ key); };
public System.Web.Configuration.TrustLevel this[string key] { get; }
member this.Item(string) : System.Web.Configuration.TrustLevel
Default Public ReadOnly Property Item(key As String) As TrustLevel
參數
- key
- String
該 TrustLevel索引。
屬性值
TrustLevel A 存在於指定索引的 TrustLevelCollection。
備註
TrustLevel物件必須存在於該TrustLevelCollection物件內指定的索引位置。