| DefaultJsonSerializerSerializeObject Method (Object, JsonSerializeOptions) |
Returns a serialization of an object into JSON format.
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public string SerializeObject(
Object value,
JsonSerializeOptions options
)
Public Function SerializeObject (
value As Object,
options As JsonSerializeOptions
) As String
Dim instance As DefaultJsonSerializer
Dim value As Object
Dim options As JsonSerializeOptions
Dim returnValue As String
returnValue = instance.SerializeObject(value,
options)
member SerializeObject :
value : Object *
options : JsonSerializeOptions -> string
Parameters
- value
- Type: SystemObject
The object to serialize to JSON. - options
- Type: NLog.TargetsJsonSerializeOptions
serialization options
Return Value
Type:
StringSerialized value.
See Also