PostSharp5.0//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Backends.​Application­Insights Namespace/Application­Insights­Log­Record­Builder Class/Application­Insights­Log­Record­Builder Methods/Application­Insights­Log­Record­Builder.​Set­This Method/Application­Insights­Log­Record­Builder.​Set­This(T) Method (T, IFormatter(T))

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

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

Namespace:  PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights
Assembly:  PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights (in PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public override 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