PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Log­Activity Class / Log­Activity Methods / Log­Activity.​Set­Exception Method / Log­Activity.​Set­Exception Method (Exception, Caller­Info)

LogActivity.SetException Method (Exception, CallerInfo)

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public void SetException(
	Exception exception,
	ref CallerInfo callerInfo
)

Parameters

exception
Type: System.Exception
callerInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.CallerInfo
See Also