NamespaceElementCollection.Item[] 属性
定义
从集合中获取一个元素。Gets an element from the collection.
重载
| Item[Int32] |
从集合中获取具有指定索引的元素。Gets an element from the collection with a specified index. |
| Item[String] |
从集合中获取具有指定键的元素。Gets an element from the collection with a specified key. |
Item[Int32]
从集合中获取具有指定索引的元素。Gets an element from the collection with a specified index.
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
要从集合中检索的元素的索引。The index of the element to be retrieved from the collection.
属性值
集合中具有指定索引的命名空间元素。The namespace element in the collection that has the specified index.
适用于
Item[String]
从集合中获取具有指定键的元素。Gets an element from the collection with a specified key.
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
要从集合中检索的元素的键。The key of the element to be retrieved from the collection.
属性值
集合中与指定键匹配的命名空间元素。The namespace element in the collection that matches the specified key.