ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>.Item[] 属性       
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取集合中的项。
重载
| Item[Type] | 获取集合中指定类型的项。 | 
| Item[Int32] | 获取集合中指定索引处的项。 | 
Item[Type]
获取集合中指定类型的项。
public:
 property TServiceModelExtensionElement default[Type ^] { TServiceModelExtensionElement get(Type ^ extensionType); };public TServiceModelExtensionElement this[Type extensionType] { get; }member this.Item(Type) : 'ServiceModelExtensionElementDefault Public ReadOnly Property Item(extensionType As Type) As TServiceModelExtensionElement参数
- extensionType
- Type
要在集合中检索的项的类型。
属性值
一个 ServiceModelExtensionElement,表示位于集合内指定索引处的项。
例外
              extensionType 为 null。
              extensionType 无效。
适用于
Item[Int32]
获取集合中指定索引处的项。
public:
 property TServiceModelExtensionElement default[int] { TServiceModelExtensionElement get(int index); };public TServiceModelExtensionElement this[int index] { get; }member this.Item(int) : 'ServiceModelExtensionElementDefault Public ReadOnly Property Item(index As Integer) As TServiceModelExtensionElement参数
- index
- Int32
要检索的项在集合中的索引。
属性值
一个 ServiceModelExtensionElement,表示位于集合内指定索引处的项。