CodeCarvings.Piczard
TryGetValue Method
See Also  Send Feedback
CodeCarvings.Piczard.Serialization Namespace > JSONObject Class : TryGetValue Method

key
The key of the element to get.
value
When this method returns, the JSONElement associated with the specified key, if the key is found; otherwise, null.
This parameter is passed uninitialized.
Gets the JSONElement associated with the specified key.

Syntax

Visual Basic (Declaration)  
Public Function TryGetValue( _
   ByVal key As String, _
   ByRef value As JSONElement _
) As Boolean
C#  
public bool TryGetValue( 
   string key,
   out JSONElement value
)

Parameters

key
The key of the element to get.
value
When this method returns, the JSONElement associated with the specified key, if the key is found; otherwise, null.
This parameter is passed uninitialized.

Return Value

true if the JSONObject contains a JSONElement with the specified key; otherwise, false.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.