PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Record­Builders Namespace/Log­Record­Builder Class/Log­Record­Builder Methods/Log­Record­Builder.​Set­This Method/Log­Record­Builder.​Set­This(T) Method (T)

LogRecordBuilder.SetThis<T> Method (T)

Sets the this (instance) value and uses the default formatter. This method is only invoked if the IncludeThisValue property is true.

Namespace:  PostSharp.Patterns.Diagnostics.RecordBuilders
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.2.11.0 (6.2.11.0)
Syntax
C#
public void SetThis<T>(
	T value
)

Parameters

value
Type: T
The value of the this instance.

Type Parameters

T
Type of the class being logged.
See Also