PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Asp­Net­Framework Namespace / Asp­Net­Framework­Request­Metadata(T) Class / Asp­Net­Framework­Request­Metadata(T) Methods / Asp­Net­Framework­Request­Metadata(T).​Visit­Properties Method / Asp­Net­Framework­Request­Metadata(T).​Visit­Properties(TVisitor­State) Method (Object, ILogging­Property­Visitor(TVisitor­State), TVisitor­State, Logging­Property­Visitor­Options)

AspNetFrameworkRequestMetadata<T>.VisitProperties<TVisitorState> Method (Object, ILoggingPropertyVisitor<TVisitorState>, TVisitorState, LoggingPropertyVisitorOptions)

Invokes an action for each property in the raw CLR object of a LogEventData.

Namespace:  PostSharp.Patterns.Diagnostics.Adapters.AspNetFramework
Assembly:  PostSharp.Patterns.Diagnostics.Adapters.AspNetFramework (in PostSharp.Patterns.Diagnostics.Adapters.AspNetFramework.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public override sealed void VisitProperties<TVisitorState>(
	Object data,
	ILoggingPropertyVisitor<TVisitorState> visitor,
	ref TVisitorState visitorState,
	 in LoggingPropertyVisitorOptions visitorOptions = null
)

Parameters

data
Type: System.Object
The raw CLR object, typically LogEventData.Data.
visitor
Type: PostSharp.Patterns.Diagnostics.Custom.ILoggingPropertyVisitor<TVisitorState>
The visitor.
visitorState
Type: TVisitorState
An opaque value passed to visitor.
visitorOptions (Optional)
Type: PostSharp.Patterns.Diagnostics.Custom.LoggingPropertyVisitorOptionsInAttribute
Determines which properties need to be visited. By default, all properties are visited.

Type Parameters

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