PostSharp6.1/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, IFormatter(T))

LogRecordBuilder.SetThis<T> Method (T, IFormatter<T>)

Sets the this (instance) value and uses a given formatter.

Namespace:  PostSharp.Patterns.Diagnostics.RecordBuilders
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
public virtual void SetThis<T>(
	T value,
	IFormatter<T> formatter
)

Parameters

value
Type: T
The value of the this instance.
formatter
Type: PostSharp.Patterns.Formatters.IFormatter<T>
The formatter to be used.

Type Parameters

T
Type of the class being logged.
See Also