TcHmiJsonSerializer.Serialize Method (Int32, Object, JsonSerializerSettings)

Serializes the specified Object to an equivalent JSON String using the specified capacity and JsonSerializerSettings.

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

Syntax

C#

public static string Serialize(
    int capacity,
    Object value,
    JsonSerializerSettings settings
)

Parameters

capacity

Type: System.Int32
The capacity of the StringBuilder that is used to create the JSON String.

value

Type: System.Object
The Object to convert.

settings

Type: JsonSerializerSettings
The JsonSerializerSettings that will be used to serialize value or null to use the default JsonSerializerSettings.

Return Value

Type: String
A JSON String that is equivalent to value.

Reference

TcHmiJsonSerializer Class

Serialize Overload

TcHmiSrv.Core.Tools.Json.Newtonsoft Namespace