PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Record­BuildersText­Log­Record­BuilderWrite­Property
Open sandboxFocus

TextLogRecordBuilder.WriteProperty Method

WriteProperty<T>(String, T, Int32, 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.

Int32 index

The index of the property.

LoggingPropertyOptions options

Options of the property

Type Parameters
Name Description
T

WriteProperty(LoggingProperty, Object, Int32)

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

Declaration
protected virtual void WriteProperty(LoggingProperty property, object value, int index)
Parameters
Type Name Description
LoggingProperty property

The LoggingProperty.

Object value

The evaluated property value.

Int32 index

The index of the property.