PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Audit Namespace / Audit­Record Class

AuditRecord Class

Note: This API is now obsolete.

Represents an audit record published by the RecordPublished event.
Inheritance Hierarchy

Namespace:  PostSharp.Patterns.Diagnostics.Audit
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 2023.0.3.0 (2023.0.3.0)
[ObsoleteAttribute("This feature has been moved to the sample PostSharp.Samples.Logging.Audit.")]
public class AuditRecord

The AuditRecord type exposes the following members.

Public methodAuditRecord
Initializes a new AuditRecord.
Public propertyDeclaringType
Gets the declaring type of the method.
Public propertyException
Gets the Exception if the method failed, or null if the method succeeded.
Public propertyMemberName
Gets the name of the method.
Public propertyRecordKind
Gets the kind of record (typically MethodSuccess or MethodException).
Public propertyTarget
Gets the instance on which the method was executed, or null if the method is a static method.
Public propertyText
Gets a string describing the operation (typically, the method type, name, and parameters).
Public propertyTime
Gets the time when the execution ended.

You can customize this class by inheritance. In this case, you also need to customize the AuditRecordBuilder and AuditBackend classes.

See Also