ModelMemberCollection<TItemType,TFindType>.Item[] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the value at the specified index.
Overloads
Item[String] |
Gets the value at the specified index by name. |
Item[TFindType] |
Gets the value at the specified index by type. |
Item[String]
Gets the value at the specified index by name.
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
Parameters
- name
- String
The name of the type to retrieve.
Property Value
The value at the specified index by name.
Exceptions
The name
is not found.
The name
is null
.
Applies to
Item[TFindType]
Gets the value at the specified index by type.
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
Parameters
- value
- TFindType
The type to retrieve.
Property Value
The value at the specified index by type.
Exceptions
The value
is not found.
The value
is null
.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈