PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​CustomLog­Event­DataVisit­Properties
Open sandboxFocus

LogEventData.VisitProperties Method

VisitProperties<TVisitorState>(ILoggingPropertyVisitor<TVisitorState>, ref TVisitorState, in LoggingPropertyVisitorOptions)

Invokes an action for each property in the current LogEventData.

Declaration
public void VisitProperties<TVisitorState>(ILoggingPropertyVisitor<TVisitorState> visitor, ref TVisitorState visitorState, in LoggingPropertyVisitorOptions visitorOptions = null)
Parameters
Type Name Description
ILoggingPropertyVisitor<TVisitorState> visitor

The visitor.

TVisitorState visitorState

An opaque value passed to visitor.

LoggingPropertyVisitorOptions visitorOptions

Determines which properties need to be visited. By default, all properties are visited.

Type Parameters
Name Description
TVisitorState

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