ModelItemDictionary.TryGetValue Method (ModelItem, ModelItem%)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Retrieves the value for the given key, if possible.

Namespace:  System.Activities.Design.Model
Assembly:  System.Activities.Design.Base (in System.Activities.Design.Base.dll)

Syntax

'Declaration
Public MustOverride Function TryGetValue ( _
    key As ModelItem, _
    <OutAttribute> ByRef value As ModelItem _
) As Boolean
'Usage
Dim instance As ModelItemDictionary
Dim key As ModelItem
Dim value As ModelItem
Dim returnValue As Boolean

returnValue = instance.TryGetValue(key, _
    value)
public abstract bool TryGetValue(
    ModelItem key,
    out ModelItem value
)
public:
virtual bool TryGetValue(
    ModelItem^ key, 
    [OutAttribute] ModelItem^% value
) abstract
public abstract function TryGetValue(
    key : ModelItem, 
    value : ModelItem
) : boolean
abstract TryGetValue : 
        key:ModelItem * 
        value:ModelItem -> bool 

Parameters

Return Value

Type: System.Boolean
true if there is a value present for the specified key; otherwise, false.

Implements

IDictionary<TKey, TValue>.TryGetValue(TKey, TValue%)

Exceptions

Exception Condition
ArgumentNullException

If key is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 4

See Also

Reference

ModelItemDictionary Class

ModelItemDictionary Members

TryGetValue Overload

System.Activities.Design.Model Namespace