ModelItemDictionary.TryGetValue Method
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.
Retrieves the value for the given key, if possible.
Overloads
TryGetValue(Object, ModelItem) |
Retrieves the value for the given key, if possible. |
TryGetValue(ModelItem, ModelItem) |
Retrieves the value for the given key, if possible. |
TryGetValue(Object, ModelItem)
Retrieves the value for the given key, if possible.
public:
abstract bool TryGetValue(System::Object ^ key, [Runtime::InteropServices::Out] System::Activities::Presentation::Model::ModelItem ^ % value);
public abstract bool TryGetValue (object key, out System.Activities.Presentation.Model.ModelItem value);
abstract member TryGetValue : obj * ModelItem -> bool
Public MustOverride Function TryGetValue (key As Object, ByRef value As ModelItem) As Boolean
Parameters
- key
- Object
The key associated with the value to retrieve.
- value
- ModelItem
The value associated with the specified key.
Returns
true
if there is a value present for the specified key; otherwise, false
.
Exceptions
If key
is null
.
Applies to
TryGetValue(ModelItem, ModelItem)
Retrieves the value for the given key, if possible.
public:
abstract bool TryGetValue(System::Activities::Presentation::Model::ModelItem ^ key, [Runtime::InteropServices::Out] System::Activities::Presentation::Model::ModelItem ^ % value);
public abstract bool TryGetValue (System.Activities.Presentation.Model.ModelItem key, out System.Activities.Presentation.Model.ModelItem value);
abstract member TryGetValue : System.Activities.Presentation.Model.ModelItem * ModelItem -> bool
Public MustOverride Function TryGetValue (key As ModelItem, ByRef value As ModelItem) As Boolean
Parameters
- key
- ModelItem
The key associated with the value to retrieve.
- value
- ModelItem
The value associated with the specified key.
Returns
true
if there is a value present for the specified key; otherwise, false
.
Exceptions
If key
is null
.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈