LoggingContext.ForEachProperty<T> Method (LoggingPropertyVisitor<T>, T, Boolean) |
Namespace: PostSharp.Patterns.Diagnostics.Contexts
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.5.21.0 (6.5.21.0)
public void ForEachProperty<T>( LoggingPropertyVisitor<T> visitor, ref T state, bool includeAncestors = true )
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. - includeAncestors (Optional)
- Type: System.Boolean
true if ancestor contexts should be visited, false if only the current context should be visited.
Type Parameters
- T
- Type of the state passed to the visitor delegate.
Implements
ILoggingContext.ForEachProperty<T>(LoggingPropertyVisitor<T>, T, Boolean)This method will visit all properties regardless of their name. If several properties have the same name, they will be visited several times.