<PackageReference Include="Serilog.Exceptions" Version="8.4.0" />

Serilog.Exceptions.Core.IExceptionPropertiesBag

public interface IExceptionPropertiesBag
Container for all properties of single exception instance. All properties must be added before result dictionary is requested.
void AddProperty(string key, object value)

Adds a property to the bag.

bool ContainsProperty(string key)

Returns true if given key is already present in the bag.

Results should be collected only once, after all the properties were added using AddProperty method.