Open sandboxFocus

Method ForEachProperty

ForEachProperty(LoggingPropertyVisitor<object>)

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

Declaration
[Obsolete("Use VisitProperties")]
public void ForEachProperty(LoggingPropertyVisitor<object> visitor)
Parameters
Type Name Description
LoggingPropertyVisitor<object> visitor

The delegate to invoke. The state parameter of the delegate will be assigned to a dummy variable.

ForEachProperty<T>(LoggingPropertyVisitor<T>, ref T)

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

Declaration
public void ForEachProperty<T>(LoggingPropertyVisitor<T> visitor, ref T state)
Parameters
Type Name Description
LoggingPropertyVisitor<T> visitor

The delegate to invoke. The state parameter of the delegate will be assigned to a dummy variable.

T state

Some state that will be passed to the visitor delegate.

Type Parameters
Name Description
T

Type of the state passed to the visitor delegate.