ILogRecordBuilder.WriteParameter Method
WriteParameter<T>(Int32, 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 |
---|---|---|
System.Int32 | index | Index of the parameter (zero-based). |
System.ReadOnlySpan<System.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. |