ILoggingContext.ForEachProperty Method (LoggingPropertyVisitor<Object>, Boolean) |
Note: This API is now obsolete.
Namespace: PostSharp.Patterns.Diagnostics.Contexts
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
[ObsoleteAttribute("Use LoggingContext.VisitProperties.")] void ForEachProperty( LoggingPropertyVisitor<Object> visitor, bool includeAncestors = true )
Parameters
- visitor
- Type: PostSharp.Patterns.Diagnostics.Contexts.LoggingPropertyVisitor<Object>
The delegate to invoke. The state parameter of the delegate will be assigned to a dummy variable. - includeAncestors (Optional)
- Type: System.Boolean
true if ancestor contexts should be visited, false if only the current context should be visited.
This method will visit all properties regardless of their name. If several properties have the same name, they will be visited several times.