Share via


ModelItemDictionary.TryGetValue Method (ModelItem, ModelItem%)

When overridden in a derived class, retrieves the value for the specified key.

Namespace:  Microsoft.Windows.Design.Model
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public MustOverride Function TryGetValue ( _
    key As ModelItem, _
    <OutAttribute> ByRef value As ModelItem _
) As Boolean
public abstract bool TryGetValue(
    ModelItem key,
    out ModelItem value
)
public:
virtual bool TryGetValue(
    ModelItem^ key, 
    [OutAttribute] ModelItem^% value
) abstract
abstract TryGetValue : 
        key:ModelItem * 
        value:ModelItem byref -> bool 
public abstract function TryGetValue(
    key : ModelItem, 
    value : ModelItem
) : boolean

Parameters

Return Value

Type: System.Boolean
true if a value associated with key is found; otherwise, false.

Implements

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

Remarks

If a value is found to be associated with the specified key, it is returned in the value out parameter.

.NET Framework Security

See Also

Reference

ModelItemDictionary Class

TryGetValue Overload

Microsoft.Windows.Design.Model Namespace

Other Resources

WPF Designer Extensibility Architecture