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

LogEventData.VisitProperties<TVisitorState> Method

Invokes an action for each property in the current 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 void VisitProperties<TVisitorState>(
	ILoggingPropertyVisitor<TVisitorState> visitor,
	ref TVisitorState visitorState,
	 in LoggingPropertyVisitorOptions visitorOptions = null
)

Parameters

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.LoggingPropertyVisitorOptions
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