Share via


NamespaceElementCollection.Item[] 属性

定义

从集合中获取一个元素。

重载

Item[Int32]

从集合中获取具有指定索引的元素。

Item[String]

从集合中获取具有指定键的元素。

Item[Int32]

从集合中获取具有指定索引的元素。

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

参数

index
Int32

要从集合中检索的元素的索引。

属性值

集合中具有指定索引的命名空间元素。

适用于

Item[String]

从集合中获取具有指定键的元素。

public:
 property System::ServiceModel::Routing::Configuration::NamespaceElement ^ default[System::String ^] { System::ServiceModel::Routing::Configuration::NamespaceElement ^ get(System::String ^ name); };
public System.ServiceModel.Routing.Configuration.NamespaceElement this[string name] { get; }
member this.Item(string) : System.ServiceModel.Routing.Configuration.NamespaceElement
Default Public ReadOnly Property Item(name As String) As NamespaceElement

参数

name
String

要从集合中检索的元素的键。

属性值

集合中与指定键匹配的命名空间元素。

适用于