PostSharp 6.6 / / Post­Sharp Documentation / 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.6.14.0 (6.6.14.0)
Syntax
C#
public bool SetException(
	Exception exception
)

Parameters

exception
Type: System.Exception
The exception.

Return Value

Type: Boolean
Always false.
See Also