PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Write­Message­Options Structure / Write­Message­Options Constructor / Write­Message­Options Constructor (Object)

WriteMessageOptions Constructor (Object)

Initializes a WriteMessageOptions and optionally specifies the properties given a CLR object.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.10.5.0 (6.10.5.0)
Syntax
C#
public WriteMessageOptions(
	Object data = null
)

Parameters

data (Optional)
Type: System.Object
Optional. Specifies the properties of the WriteMessageOptions, typically specified as an instance of a well-known or anonymous CLR type. The resulting LogEventData will have the default LogEventMetadata, which means that all CLR properties will be exposed as logging properties unless they are annotated with LoggingPropertyOptionsAttribute.
See Also