Open sandboxFocus

Method WriteProperty

WriteProperty<T>(string, T, int, in LoggingPropertyOptions)

Appends the name and value of a property to the current StringBuilder.

Declaration
protected virtual void WriteProperty<T>(string name, T value, int index, in LoggingPropertyOptions options)
Parameters
Type Name Description
string name

Name of the property

T value

The evaluated property value.

int index

The index of the property.

LoggingPropertyOptions options

Options of the property

Type Parameters
Name Description
T

WriteProperty(LoggingProperty, object, int)

Appends the name and value of a property to the current StringBuilder.

Declaration
[Obsolete("Implement the other overload.", true)]
protected virtual void WriteProperty(LoggingProperty property, object value, int index)
Parameters
Type Name Description
LoggingProperty property

The LoggingProperty.

object value

The evaluated property value.

int index

The index of the property.