Open sandboxFocus

Method WriteParameter

WriteParameter<T>(int, in ReadOnlySpan<char>, T?, in LogParameterOptions)

Writes a parameter.

Declaration
void WriteParameter<T>(int index, in ReadOnlySpan<char> parameterName, T? value, in LogParameterOptions options)
Parameters
Type Name Description
int index

Index of the parameter (zero-based).

ReadOnlySpan<char> parameterName

Name of the parameter.

T value

Value of the parameter.

LogParameterOptions options

Options.

Type Parameters
Name Description
T

Type of the parameter value.