TcHmiJsonSerializerSerialize(Object, Type, JsonSerializerSettings) Method

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


Namespace: TcHmiSrv.Core.Tools.Json.Newtonsoft
Assembly: TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 3.1.7447.0+85f9b473a1dd11b8f3e5c9a182fd1901975e46f9

Syntax

C#

public static string Serialize(
    Object value,
    Type type,
    JsonSerializerSettings settings
)

Parameters

value  Object

The Object to convert.

type  Type

The Type of the value being serialized. This parameter is used when TypeNameHandling is TypeNameHandling.Auto to write out the Type name if the Type of the value does not match. Specifying the Type is optional.

settings  JsonSerializerSettings

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

Return Value

String
A JSON String that is equivalent to value.

Version Information

Supported in: 3.1.7447.0, 2.3.7447.0, 1.10.7447.0

Reference

TcHmiJsonSerializer Class Serialize Overload TcHmiSrv.Core.Tools.Json.Newtonsoft Namespace

Copyright © Beckhoff Automation GmbH & Co. KG