Version

RenderProperty Method (StateBot)

Renders an ObjectBase object into a string buffer containing the object JSON representation.
Syntax
'Declaration
 
Public Shared Sub RenderProperty( _
   ByVal prop As Object, _
   ByVal buffer As StringBuilder, _
   ByVal renderNulls As Boolean _
) 
public static void RenderProperty( 
   object prop,
   StringBuilder buffer,
   bool renderNulls
)

Parameters

prop
The property to render.
buffer
The string buffer that will contain the property representation.
renderNulls
If true, objects that are null will be rendered as "null,". Normally the framework puts only "," to conserve space.
Remarks
renderNulls is used when IGControl.OptimizeCollectionsState is true. We need to save the collections JSON in a format that can be easily deserialized by JavaScriptSerializer.DeserializeObject().
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