LoggingFields.Clear Method

Definition

Removes all fields stored in the object and resets the object to its newly-constructed state.

public:
 virtual void Clear() = Clear;
void Clear();
public void Clear();
function clear()
Public Sub Clear ()

Remarks

This method allows you to reuse a LoggingFields instance with multiple events which improves performance by avoiding unnecessary object creation, payload buffer allocation, and garbage collection overhead.

Applies to