PostSharp6.7//API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Log­Activity(TActivity­Description) Structure/Log­Activity(TActivity­Description) Methods/Log­Activity(TActivity­Description).​Set­Exception Method

LogActivity<TActivityDescription>.SetException Method

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
public void SetException(
	Exception exception,
	 in CloseActivityOptions options = null
)

Parameters

exception
Type: System.Exception
options (Optional)
Type: PostSharp.Patterns.Diagnostics.CloseActivityOptions
See Also