ExceptionExtensions.SetData method
Sets custom exception data with the given property name and value. Sets the data in the base exception.
public static void SetData(this Exception exception, string property, object? value)
| parameter | description |
|---|---|
| exception | Exception to set custom data in. |
| property | Custom exception data name. |
| value | Custom exception data value. |
See Also
- class ExceptionExtensions