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­Exception Method

ApplicationInsightsLogRecordBuilder.SetException Method

Sets the exception for the method or activity.

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 SetException(
	Exception exception
)

Parameters

exception
Type: System.Exception
An Exception.
See Also