WebRequestModuleElementCollection.Item[] 屬性

定義

取得或設定具有指定之索引或機碼的項目。

多載

Item[Int32]

取得或設定位於集合指定位置的元素。

Item[String]

取得或設定具有指定索引鍵的項目。

Item[Int32]

取得或設定位於集合指定位置的元素。

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

參數

index
Int32

元素以零起始的索引。

屬性值

位於指定位置處的 WebRequestModuleElement

適用於

Item[String]

取得或設定具有指定索引鍵的項目。

public:
 property System::Net::Configuration::WebRequestModuleElement ^ default[System::String ^] { System::Net::Configuration::WebRequestModuleElement ^ get(System::String ^ name); void set(System::String ^ name, System::Net::Configuration::WebRequestModuleElement ^ value); };
public System.Net.Configuration.WebRequestModuleElement this[string name] { get; set; }
member this.Item(string) : System.Net.Configuration.WebRequestModuleElement with get, set
Default Public Property Item(name As String) As WebRequestModuleElement

參數

name
String

集合中項目的索引鍵。

屬性值

附指定索引鍵的 WebRequestModuleElement,如果沒有附指定索引鍵的項目則為 null

適用於