語言

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

定義

取得指定索引處的值。

多載

名稱 Description
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

name 是 null。

適用於

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

value 是 null。

適用於