CommandGroupExtensions.ToJson Method (CommandGroup, Boolean, Boolean)

Returns a JSON String that represents the current CommandGroup.

Namespace:  TcHmiSrv.Core.Tools.Json.Extensions
Assembly:  TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 1.3.0.0

Syntax

C#

public static string ToJson(
    this CommandGroup value,
    bool format,
    bool enableAdvancedConversions
)

Parameters

value

Type: TcHmiSrv.Core.CommandGroup
The CommandGroup to convert into a JSON String.

format

Type: System.Boolean
true to format the JSON String by indenting; otherwise, false.

enableAdvancedConversions

Type: System.Boolean
true to enabled advanced conversions; otherwise, false.

Return Value

Type: String
A JSON String that represents value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type CommandGroup. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Reference

CommandGroupExtensions Class

ToJson Overload

TcHmiSrv.Core.Tools.Json.Extensions Namespace