PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​CustomILogging­Property­Visitor<TState>Visit
Open sandboxFocus

ILoggingPropertyVisitor<TState>.Visit Method

Visit<TValue>(String, TValue, in LoggingPropertyOptions, ref TState)

Method invoked for each property in a LogEventData.

Declaration
void Visit<TValue>(string name, TValue value, in LoggingPropertyOptions options, ref TState state)
Parameters
Type Name Description
String name

Property name.

TValue value

Property value.

LoggingPropertyOptions options

Property options.

TState state

State passed from the caller through the VisitProperties<TVisitorState>(ILoggingPropertyVisitor<TVisitorState>, ref TVisitorState, in LoggingPropertyVisitorOptions) method.

Type Parameters
Name Description
TValue

Type of the property.