| IValueFormatterFormatValue Method |
Serialization of an object, e.g. JSON and append to builder
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax bool FormatValue(
Object value,
string format,
CaptureType captureType,
IFormatProvider formatProvider,
StringBuilder builder
)
Function FormatValue (
value As Object,
format As String,
captureType As CaptureType,
formatProvider As IFormatProvider,
builder As StringBuilder
) As Boolean
Dim instance As IValueFormatter
Dim value As Object
Dim format As String
Dim captureType As CaptureType
Dim formatProvider As IFormatProvider
Dim builder As StringBuilder
Dim returnValue As Boolean
returnValue = instance.FormatValue(value,
format, captureType, formatProvider,
builder)
abstract FormatValue :
value : Object *
format : string *
captureType : CaptureType *
formatProvider : IFormatProvider *
builder : StringBuilder -> bool
Parameters
- value
- Type: SystemObject
The object to serialize to string. - format
- Type: SystemString
Parameter Format - captureType
- Type: NLog.MessageTemplatesCaptureType
Parameter CaptureType - formatProvider
- Type: SystemIFormatProvider
An object that supplies culture-specific formatting information. - builder
- Type: System.TextStringBuilder
Output destination.
Return Value
Type:
BooleanSerialize succeeded (true/false)
See Also