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
Boolean

Always false.

SetException(Exception, ref CallerInfo)

Declaration
public bool SetException(Exception exception, ref CallerInfo callerInfo)
Parameters
Type Name Description
Exception exception
CallerInfo callerInfo
Returns
Type Description
Boolean