PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Record­Builders Namespace/Log­Record­Builder Class/Log­Record­Builder Methods/Log­Record­Builder.​For­Each­Property Method/Log­Record­Builder.​For­Each­Property(T) Method (Logging­Property­Visitor(T), T)

LogRecordBuilder.ForEachProperty<T> Method (LoggingPropertyVisitor<T>, T)

Invokes a delegate for each property defined in the current log record.

Namespace:  PostSharp.Patterns.Diagnostics.RecordBuilders
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
public void ForEachProperty<T>(
	LoggingPropertyVisitor<T> visitor,
	ref T state
)

Parameters

visitor
Type: PostSharp.Patterns.Diagnostics.Contexts.LoggingPropertyVisitor<T>
The delegate to invoke. The state parameter of the delegate will be assigned to a dummy variable.
state
Type: T
Some state that will be passed to the visitor delegate.

Type Parameters

T
Type of the state passed to the visitor delegate.
See Also