PostSharp / / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom / ICustom­Log­Record­Builder / Set­Exception
Open sandbox

Method SetException

SetException(Exception)

Assigns an Exception to the record.

Declaration
void SetException(Exception exception)
Parameters
Type Name Description
Exception exception

The Exception.