PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Record­Builders Namespace / Log­Record­Builder Class / Log­Record­Builder Methods / Log­Record­Builder.​Visit­Properties Method / Log­Record­Builder.​Visit­Properties(TState) Method (ILogging­Property­Visitor(TState), TState, Logging­Property­Visitor­Options)

LogRecordBuilder.VisitProperties<TState> Method (ILoggingPropertyVisitor<TState>, TState, LoggingPropertyVisitorOptions)

Invokes the Visit<TValue>(String, TValue, LoggingPropertyOptions, TState) method of an interface implementation for each property on the current record, but not in the context stack.

Namespace:  PostSharp.Patterns.Diagnostics.RecordBuilders
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.8.6.0 (6.8.6.0)
Syntax
C#
public void VisitProperties<TState>(
	ILoggingPropertyVisitor<TState> visitor,
	ref TState state,
	 in LoggingPropertyVisitorOptions options = null
)

Parameters

visitor
Type: PostSharp.Patterns.Diagnostics.Custom.ILoggingPropertyVisitor<TState>
The visitor implementation.
state
Type: TState
The opaque state passed through to the visitor.
options (Optional)
Type: PostSharp.Patterns.Diagnostics.Custom.LoggingPropertyVisitorOptions
Determines which properties are visited.

Type Parameters

TState
The type of the opaque state passed through to the visitor.
See Also