C# Class Serilog.Events.LogEventPropertyValue

The value associated with a LogEventProperty. Divided into scalar, sequence and structure values to direct serialization into various formats.
Inheritance: IFormattable
Exibir arquivo Open project: serilog/serilog Class Usage Examples

Public Methods

Method Description
Render ( TextWriter output, string format = null, IFormatProvider formatProvider = null ) : void

Render the value to the output.

ToString ( ) : string

Returns a string that represents the current object.

ToString ( string format, IFormatProvider formatProvider ) : string

Formats the value of the current instance using the specified format.

Method Details

Render() public abstract method

Render the value to the output.
public abstract Render ( TextWriter output, string format = null, IFormatProvider formatProvider = null ) : void
output System.IO.TextWriter The output.
format string A format string applied to the value, or null.
formatProvider IFormatProvider A format provider to apply to the value, or null to use the default.
return void

ToString() public method

Returns a string that represents the current object.
public ToString ( ) : string
return string

ToString() public method

Formats the value of the current instance using the specified format.
public ToString ( string format, IFormatProvider formatProvider ) : string
format string The format to use.-or- A null reference (Nothing in Visual Basic) to use /// the default format defined for the type of the implementation.
formatProvider IFormatProvider The 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.
return string