PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Record­Builders Namespace / Text­Log­Record­Builder Class / Text­Log­Record­Builder Methods / Text­Log­Record­Builder.​Write­Property Method / Text­Log­Record­Builder.​Write­Property(T) Method (String, T, Int32, Logging­Property­Options)

TextLogRecordBuilder.WriteProperty<T> Method (String, T, Int32, LoggingPropertyOptions)

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

Namespace:  PostSharp.Patterns.Diagnostics.RecordBuilders
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.8.6.0 (6.8.6.0)
Syntax
C#
protected virtual void WriteProperty<T>(
	string name,
	T value,
	int index,
	 in LoggingPropertyOptions options
)

Parameters

name
Type: System.String
Name of the property
value
Type: T
The evaluated property value.
index
Type: System.Int32
The index of the property.
options
Type: PostSharp.Patterns.Diagnostics.Custom.LoggingPropertyOptionsInAttribute
Options of the property

Type Parameters

T
See Also