Class LogEventPropertyValue
The value associated with a LogEventProperty. Divided into scalar, sequence and structure values to direct serialization into various formats.
public abstract class LogEventPropertyValue : IFormattable
- Inheritance
-
LogEventPropertyValue
- Implements
- Derived
- Inherited Members
Constructors
LogEventPropertyValue()
protected LogEventPropertyValue()
Methods
Render(TextWriter, string?, IFormatProvider?)
Render the value to the output.
public abstract void Render(TextWriter output, string? format = null, IFormatProvider? formatProvider = null)
Parameters
output
TextWriterThe output.
format
stringA format string applied to the value, or null.
formatProvider
IFormatProviderA format provider to apply to the value, or null to use the default.
- See Also
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
ToString(string?, IFormatProvider?)
Formats the value of the current instance using the specified format.
public string ToString(string? format, IFormatProvider? formatProvider)
Parameters
format
stringThe format to use.-or- A null reference (Nothing in Visual Basic) to use the default format defined for the type of the IFormattable implementation.
formatProvider
IFormatProviderThe provider to use to format the value.-or- A null reference (Nothing in Visual Basic) to obtain the numeric format information from the current locale setting of the operating system.
Returns
- string
The value of the current instance in the specified format.