T
Expected type of property.
Community Analyst API for Silverlight 2.2 Reference
GetOptionalProperty<T>(String,IDictionary<String,Object>,String,T) Method
See Also  Send Feedback
ESRI.ArcGIS.Client.BACore.Client Namespace > ParseUtils Class > GetOptionalProperty Method : GetOptionalProperty<T>(String,IDictionary<String,Object>,String,T) Method

objectName
A name which describes this object.
decodedObject
A JSON-decoded object.
propertyName
A property of the JSON-decoded object to be tested and returned.
defaultValue
A value to be returned if property value is missing.

Glossary Item Box

Gets an optional property of a JSON-decoded object.

Syntax

 
Visual Basic (Declaration)
C#
 
 
Public Overloads Shared Function GetOptionalProperty(Of T)( _
   ByVal objectName As String, _
   ByVal decodedObject As IDictionary(Of String,Object), _
   ByVal propertyName As String, _
   ByVal defaultValue As T _
) As T

Parameters

objectName
A name which describes this object.
decodedObject
A JSON-decoded object.
propertyName
A property of the JSON-decoded object to be tested and returned.
defaultValue
A value to be returned if property value is missing.

Type Parameters

T
Expected type of property.

Return Value

Property value.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2010-2012 ESRI Inc. All Rights Reserved.