ProtocolCollection.Item[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
獲得指定的 ProtocolElement 收藏品。
多載
| 名稱 | Description |
|---|---|
| Item[Int32] |
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。 取得 ProtocolElement 集合指定索引的物件。 |
| Item[String] |
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。 取得第一個指定金鑰條目的值。 |
備註
Item[] 在 .NET Framework 3.5 中引入。 欲了解更多資訊,請參閱 版本與相依關係。
Item[Int32]
取得 ProtocolElement 集合指定索引的物件。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
property System::Web::Configuration::ProtocolElement ^ default[int] { System::Web::Configuration::ProtocolElement ^ get(int index); void set(int index, System::Web::Configuration::ProtocolElement ^ value); };
public System.Web.Configuration.ProtocolElement this[int index] { get; set; }
member this.Item(int) : System.Web.Configuration.ProtocolElement with get, set
Default Public Property Item(index As Integer) As ProtocolElement
參數
- index
- Int32
實例中ProtocolElement物件的ProtocolCollection索引。
屬性值
ProtocolElement 物件。
備註
Item[] 在 .NET Framework 3.5 中引入。 欲了解更多資訊,請參閱 版本與相依關係。
適用於
Item[String]
取得第一個指定金鑰條目的值。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
property System::Web::Configuration::ProtocolElement ^ default[System::String ^] { System::Web::Configuration::ProtocolElement ^ get(System::String ^ name); };
public System.Web.Configuration.ProtocolElement this[string name] { get; }
member this.Item(string) : System.Web.Configuration.ProtocolElement
Default Public ReadOnly Property Item(name As String) As ProtocolElement
參數
- name
- String
入口的鑰匙。
屬性值
一個 ProtocolElement 物件,若找到,代表第一個具有指定鍵值的條目值;否則,為 null。
備註
Item[] 在 .NET Framework 3.5 中引入。 欲了解更多資訊,請參閱 版本與相依關係。