ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>.Item[] 屬性

定義

取得集合中的項目。

多載

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) : 'ServiceModelExtensionElement
Default Public ReadOnly Property Item(extensionType As Type) As TServiceModelExtensionElement

參數

extensionType
Type

要擷取的集合之中的項目型別。

屬性值

TServiceModelExtensionElement

ServiceModelExtensionElement,表示集合中位於指定索引處的項目。

例外狀況

extensionTypenull

extensionType 無效。

適用於

Item[Int32]

取得集合中位於指定索引處的項目。

public:
 property TServiceModelExtensionElement default[int] { TServiceModelExtensionElement get(int index); };
public TServiceModelExtensionElement this[int index] { get; }
member this.Item(int) : 'ServiceModelExtensionElement
Default Public ReadOnly Property Item(index As Integer) As TServiceModelExtensionElement

參數

index
Int32

要從集合中擷取的項目索引。

屬性值

TServiceModelExtensionElement

ServiceModelExtensionElement,表示集合中位於指定索引處的項目。

適用於