PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Record­Builders Namespace / Log­Record­Builder Class / Log­Record­Builder Methods / Log­Record­Builder.​Visit­Properties Method

LogRecordBuilder.VisitProperties Method

Overload List
  NameDescription
Public methodVisitProperties(Action<String, Object>, LoggingPropertyVisitorOptions)
Invokes a delegate each property on the current log record. This offers a simple way to visit properties, but it has a performance overhead compared to VisitProperties<TState>(ILoggingPropertyVisitor<TState>, TState, LoggingPropertyVisitorOptions) because it is weakly typed and cause the allocation of a closure class to build the action. It also does not expose the LoggingPropertyOptions.
Public methodVisitProperties<TState>(ILoggingPropertyVisitor<TState>, TState, LoggingPropertyVisitorOptions)
Invokes the Visit<TValue>(String, TValue, LoggingPropertyOptions, TState) method of an interface implementation for each property on the current record, but not in the context stack.
See Also