| DefaultJsonSerializerSerializeObject Method (Object, StringBuilder, JsonSerializeOptions) |
Serialization of the object in JSON format to the destination StringBuilder
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public bool SerializeObject(
Object value,
StringBuilder destination,
JsonSerializeOptions options
)
Public Function SerializeObject (
value As Object,
destination As StringBuilder,
options As JsonSerializeOptions
) As Boolean
Dim instance As DefaultJsonSerializer
Dim value As Object
Dim destination As StringBuilder
Dim options As JsonSerializeOptions
Dim returnValue As Boolean
returnValue = instance.SerializeObject(value,
destination, options)
member SerializeObject :
value : Object *
destination : StringBuilder *
options : JsonSerializeOptions -> bool
Parameters
- value
- Type: SystemObject
The object to serialize to JSON. - destination
- Type: System.TextStringBuilder
Write the resulting JSON to this destination. - options
- Type: NLog.TargetsJsonSerializeOptions
serialization options
Return Value
Type:
BooleanObject serialized successfully (true/false).
See Also