ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
PropertyBag Class
PropertyBag Methods
Add Method
ClearNoCheck Method
ContainsKey Method
Remove Method
RemovePropertyNoCheck Method
SetPropertyNoCheck Method
TryGetValue Method

# PropertyBagTryGetValue Method

Looks up a property value in the PropertyBag.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public bool TryGetValue(
    	string key,
    	out Object value
    )

    Public Function TryGetValue (
    	key As String,
    	<OutAttribute> ByRef value As Object
    ) As Boolean

    public:
    virtual bool TryGetValue(
    	String^ key,
    	[OutAttribute] Object^% value
    ) sealed

    abstract TryGetValue :
            key : string *
            value : Object byref -> bool
    override TryGetValue :
            key : string *
            value : Object byref -> bool

#### Parameters

key String
  The name of the property to locate.
value Object
  The property value if the property was found, null otherwise.

#### Return Value

Boolean
True if the property was found, false otherwise.

#### Implements

IDictionaryTKey, TValue TryGetValue(TKey, TValue)
See Also

#### Reference

PropertyBag Class
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft