PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / Log­Event­Metadata Class

LogEventMetadata Class

Defines how the raw CLR object stored in a LogEventData is translated into a set of visitable properties and an expression that is accessible from the transaction policy expressions.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Diagnostics.Custom.LogEventMetadata
    PostSharp.Patterns.Diagnostics.Custom.LogEventMetadata<TExpressionModel>

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.1.0 (6.9.1.0)
Syntax
C#
public class LogEventMetadata

The LogEventMetadata type exposes the following members.

Constructors
  NameDescription
Public methodLogEventMetadata
Initializes a new LogEventMetadata.
Properties
  NameDescription
Public propertyName
Gets the name of the current LogEventMetadata. This property may be undefined. It must be defined when the LogEventData must be available for evaluation from transaction policy expressions. In this case, the type of expression model (i.e. the generic parameter of LogEventMetadata<TExpressionModel>) must be identical for identical values of the Name property.
Methods
  NameDescription
Protected methodGetPropertyOptions
Gets the options of a given property.
Public methodHasInheritedProperty
Determines if the current LogEventMetadata contains any inherited property. The implementation of this method must not allocate heap memory.
Public methodVisitProperties<TVisitorState>
Invokes an action for each property in the raw CLR object of a LogEventData.
See Also