PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Record­Builders Namespace/Log­Record­Builder Class/Log­Record­Builder Methods/Log­Record­Builder.​Set­Exception Method

LogRecordBuilder.SetException Method

Sets the exception for the method or activity.

Namespace:  PostSharp.Patterns.Diagnostics.RecordBuilders
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.0.35.0 (6.0.35.0)
Syntax
C#
public virtual void SetException(
	Exception exception
)

Parameters

exception
Type: System.Exception
An Exception.
See Also