ProtocolCollection.Item[] 屬性

定義

取得指定的 ProtocolElement 集合項目。

多載

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

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

如果找得到,則為 ProtocolElement 物件,表示其為指定索引鍵之第一個項目的值。如果找不到,則為 null

備註

Item[] .NET Framework 3.5 中引進。 如需詳細資訊,請參閱版本和相依性

適用於