PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / Log­Event­Metadata Class / Log­Event­Metadata Methods / Log­Event­Metadata.​Visit­Properties(TVisitor­State) Method

LogEventMetadata.VisitProperties<TVisitorState> Method

Invokes an action for each property in the raw CLR object of a LogEventData.

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 virtual void VisitProperties<TVisitorState>(
	Object data,
	ILoggingPropertyVisitor<TVisitorState> visitor,
	ref TVisitorState visitorState,
	 in LoggingPropertyVisitorOptions visitorOptions = null
)

Parameters

data
Type: System.Object
The raw CLR object, typically LogEventData.Data.
visitor
Type: PostSharp.Patterns.Diagnostics.Custom.ILoggingPropertyVisitor<TVisitorState>
The visitor.
visitorState
Type: TVisitorState
An opaque value passed to visitor.
visitorOptions (Optional)
Type: PostSharp.Patterns.Diagnostics.Custom.LoggingPropertyVisitorOptionsInAttribute
Determines which properties need to be visited. By default, all properties are visited.

Type Parameters

TVisitorState
The type of the visitorState parameter, an opaque value passed to visitor.
See Also