ModelMemberCollection<TItemType,TFindType>.Item[] 屬性

定義

取得指定索引處的值。

多載

Item[String]

取得依名稱指定索引處的值。

Item[TFindType]

取得依型別指定索引處的值。

Item[String]

取得依名稱指定索引處的值。

public:
 property TItemType default[System::String ^] { TItemType get(System::String ^ name); };
public TItemType this[string name] { get; }
member this.Item(string) : 'ItemType
Default Public ReadOnly Property Item(name As String) As TItemType

參數

name
String

要擷取的型別名稱。

屬性值

TItemType

依名稱指定索引處的值。

例外狀況

找不到 name

namenull

適用於

Item[TFindType]

取得依型別指定索引處的值。

public:
 property TItemType default[TFindType] { TItemType get(TFindType value); };
public TItemType this[TFindType value] { get; }
member this.Item('FindType) : 'ItemType
Default Public ReadOnly Property Item(value As TFindType) As TItemType

參數

value
TFindType

要擷取的型別。

屬性值

TItemType

依型別指定索引處的值。

例外狀況

找不到 value

valuenull

適用於