 | 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: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic 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