PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​Audit Namespace / Audit­Record­Builder Class / Audit­Record­Builder Methods / Audit­Record­Builder.​Set­Exception Method

AuditRecordBuilder.SetException Method

Sets the exception for the method or activity.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Audit
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public override void SetException(
	Exception exception
)

Parameters

exception
Type: System.Exception
An Exception.
See Also