PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLog­ActivitySet­Exception
Open sandboxFocus

LogActivity.SetException Method

SetException(Exception)

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

Declaration
public bool SetException(Exception exception)
Parameters
Type Name Description
Exception exception

The exception.

Returns
Type Description
bool

Always false.