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­Property(TVisitor­State, TValue) Method

AspNetFrameworkRequestMetadata<T>.VisitProperty<TVisitorState, TValue> Method

Called by VisitProperties<TVisitorState>(HttpContext, ILoggingPropertyVisitor<TVisitorState>, TVisitorState, LoggingPropertyVisitorOptions) for each property. The default implementation filters out null or empty properties. You can override this method to change the default filtering.

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#
protected virtual void VisitProperty<TVisitorState, TValue>(
	string name,
	TValue value,
	ILoggingPropertyVisitor<TVisitorState> visitor,
	ref TVisitorState visitorState,
	 in LoggingPropertyOptions options = null
)

Parameters

name
Type: System.String
Property name.
value
Type: TValue
Property value.
visitor
Type: PostSharp.Patterns.Diagnostics.Custom.ILoggingPropertyVisitor<TVisitorState>
The visitor whose Visit<TValue>(String, TValue, LoggingPropertyOptions, TState) method is invoked.
visitorState
Type: TVisitorState
An opaque state passed to the visitor.
options (Optional)
Type: PostSharp.Patterns.Diagnostics.Custom.LoggingPropertyOptionsInAttribute
Property options.

Type Parameters

TVisitorState
The type of the opaque state passed to visitor.
TValue
The type of the property.
See Also