ModelItemDictionary.TryGetValue Method

Definition

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.

C#
public abstract bool TryGetValue(object key, out System.Activities.Presentation.Model.ModelItem value);

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

TryGetValue(ModelItem, ModelItem)

Retrieves the value for the given key, if possible.

C#
public abstract bool TryGetValue(System.Activities.Presentation.Model.ModelItem key, out System.Activities.Presentation.Model.ModelItem value);

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1