PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace / Logging­Context Class / Logging­Context Methods / Logging­Context.​Visit­Properties Method / Logging­Context.​Visit­Properties(TState) Method (ILogging­Property­Visitor(TState), TState, Logging­Property­Visitor­Options)

LoggingContext.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 context, and, optionally, for inherited properties in ancestor contexts.

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.9.1.0 (6.9.1.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
Visitor options.

Type Parameters

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