ModelMemberCollection<TItemType,TFindType>.Item[] 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指定索引处的值。
重载
| 名称 | 说明 |
|---|---|
| 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。