語言

ProtocolElementCollection.Item[] 屬性

定義

取得或設定集合中的元素。

多載

名稱 Description
Item[Int32]

取得或設定該元素在集合中指定的索引。

Item[Object]

取得或設定集合中擁有指定金鑰的 。ProtocolElement

Item[Int32]

取得或設定該元素在集合中指定的索引。

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

參數

index
Int32

集合中的零為基礎索引。

屬性值

ProtocolElement該 that 存在於指定的索引。

適用於

Item[Object]

取得或設定集合中擁有指定金鑰的 。ProtocolElement

public:
 property System::Web::Services::Configuration::ProtocolElement ^ default[System::Object ^] { System::Web::Services::Configuration::ProtocolElement ^ get(System::Object ^ key); void set(System::Object ^ key, System::Web::Services::Configuration::ProtocolElement ^ value); };
public System.Web.Services.Configuration.ProtocolElement this[object key] { get; set; }
member this.Item(obj) : System.Web.Services.Configuration.ProtocolElement with get, set
Default Public Property Item(key As Object) As ProtocolElement

參數

key
Object

在集合中,要取得或設定的鑰匙 ProtocolElement 。

屬性值

該ProtocolElement

例外狀況

ProtocolElement該集合中未找到指定鑰匙的

適用於