PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Log­Activity Class/Log­Activity Methods/Log­Activity.​Set­Exception Method

LogActivity.SetException Method

Ends an activity (opened with OpenActivity(String) or OpenAsyncActivity(String) with a given Exception.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.2.13.0 (6.2.13.0)
Syntax
C#
public bool SetException(
	Exception exception
)

Parameters

exception
Type: System.Exception
The exception.

Return Value

Type: Boolean
Always false.
See Also