BypassElementCollection.Item[] 属性

定义

获取或设置具有指定索引或键的元素。

重载

Item[Int32]

获取或设置集合中指定位置的元素。

Item[String]

获取或设置具有指定键的元素。

Item[Int32]

获取或设置集合中指定位置的元素。

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

参数

index
Int32

元素的从零开始的索引。

属性值

BypassElement

位于指定位置的 BypassElement

适用于

Item[String]

获取或设置具有指定键的元素。

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

参数

name
String

集合中的元素的键。

属性值

BypassElement

具有指定键的 BypassElement,如果不存在具有指定键的元素,则为 null

另请参阅

适用于