Share via


PropertyBag.TryGetValue method

Gets the value associated with the specified key.

Namespace:  Microsoft.PerformancePoint.Scorecards
Assembly:  Microsoft.PerformancePoint.Scorecards.Client (in Microsoft.PerformancePoint.Scorecards.Client.dll)

Syntax

'Declaration
Public Function TryGetValue ( _
    key As String, _
    <OutAttribute> ByRef value As Object _
) As Boolean
'Usage
Dim instance As PropertyBag
Dim key As String
Dim value As Object
Dim returnValue As Boolean

returnValue = instance.TryGetValue(key, _
    value)
public bool TryGetValue(
    string key,
    out Object value
)

Parameters

  • value
    Type: System.Object

    The value associated with the specified key, if found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Return value

Type: System.Boolean
true if the dictionary contains the value with the specified key; otherwise, false.

See also

Reference

PropertyBag class

PropertyBag members

Microsoft.PerformancePoint.Scorecards namespace