Method ForEachProperty
ForEachProperty(LoggingPropertyVisitor<Object>, Boolean)
Invokes a delegate for each property defined in the current logging context and optionally in its ancestor contexts.
Declaration
public void ForEachProperty([Required] LoggingPropertyVisitor<object> visitor, bool includeAncestors = true)
Parameters
Type | Name | Description |
---|---|---|
LoggingPropertyVisitor<Object> | visitor | The delegate to invoke. The |
Boolean | includeAncestors |
|
Implements
ForEachProperty<T>(LoggingPropertyVisitor<T>, ref T, Boolean)
Invokes a delegate for each property defined in the current logging context and optionally in its ancestor contexts, and specifies passes a state object to the delegate.
Declaration
public void ForEachProperty<T>([Required] LoggingPropertyVisitor<T> visitor, ref T state, bool includeAncestors = true)
Parameters
Type | Name | Description |
---|---|---|
LoggingPropertyVisitor<T> | visitor | The delegate to invoke. The |
T | state | Some state that will be passed to the |
Boolean | includeAncestors |
|
Type Parameters
Name | Description |
---|---|
T | Type of the state passed to the |