LoggingFields.Clear Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.