Version

GetJSONDataForRecord Method

Outputs the data source object's data for the given record as JSON into a StringBuider.
Syntax
'Declaration
 
Public Sub GetJSONDataForRecord( _
   ByVal record As DataRecord, _
   ByVal stream As StringBuilder, _
   ByVal fieldNames() As String, _
   ByVal encodeDate As Boolean _
) 
public void GetJSONDataForRecord( 
   DataRecord record,
   StringBuilder stream,
   string[] fieldNames,
   bool encodeDate
)

Parameters

record
The record whose data to create a JSON from.
stream
Output stream
fieldNames
Array of field names to return JSON for. Null signifies all available fields.
encodeDate
Whether to encode dates like the WDG does
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also