PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / ILog­Activity Interface / ILog­Activity Methods / ILog­Activity.​Set­Exception Method

ILogActivity.SetException Method

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

Parameters

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