Share via


ModelItemDictionary.TryGetValue Method (Object, 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 Object, _
    <OutAttribute> ByRef value As ModelItem _
) As Boolean
public abstract bool TryGetValue(
    Object key,
    out ModelItem value
)
public:
virtual bool TryGetValue(
    Object^ key, 
    [OutAttribute] ModelItem^% value
) abstract
abstract TryGetValue : 
        key:Object * 
        value:ModelItem byref -> bool 
public abstract function TryGetValue(
    key : Object, 
    value : ModelItem
) : boolean

Parameters

  • key
    Type: System.Object
    An object representing the key to be tested.

Return Value

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

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