Represents the options of the Write<T>(in T, in WriteMessageOptions) method.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Common.dll
Syntax
public struct WriteMessageOptionsRemarks
Use these options to add properties to a message. Properties are name-value pairs passed to the logging backend in addition to the message. The simplest way to define them is to pass an instance of an anonymous type to the WriteMessageOptions(object) constructor.
Constructors
| Name | Description |
|---|---|
| WriteMessageOptions(in LogEventData) | Initializes a new instance of the WriteMessageOptions struct and optionally specifies the properties from a LogEventData. |
| WriteMessageOptions(object) | Initializes a new instance of the WriteMessageOptions struct and optionally specifies the properties from a CLR object. |
Properties
| Name | Description |
|---|---|
| Data | Gets or sets the properties of the WriteMessageOptions. They are typically specified as an instance of a well-known or anonymous CLR type. |
| Properties | Gets or sets the activity properties. |