PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / ILogging­Property­Visitor(TState) Interface / ILogging­Property­Visitor(TState) Methods / ILogging­Property­Visitor(TState).​Visit(TValue) Method

ILoggingPropertyVisitor<TState>.Visit<TValue> Method

Method invoked for each property in a 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#
void Visit<TValue>(
	string name,
	TValue value,
	 in LoggingPropertyOptions options,
	ref TState state
)

Parameters

name
Type: System.String
Property name.
value
Type: TValue
Property value.
options
Type: PostSharp.Patterns.Diagnostics.Custom.LoggingPropertyOptionsInAttribute
Property options.
state
Type: TState
State passed from the caller through the VisitProperties<TVisitorState>(ILoggingPropertyVisitor<TVisitorState>, TVisitorState, LoggingPropertyVisitorOptions) method.

Type Parameters

TValue
Type of the property.
See Also