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.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