TextLogRecordBuilder.WriteCustomString Method
WriteCustomString(ArraySegment<Char>)
Write a custom string passed as an ArraySegment<char>
.
Declaration
public override void WriteCustomString(ArraySegment<char> str)
Parameters
Type | Name | Description |
---|---|---|
ArraySegment<System.Char> | str | The string to be written. |
Overrides
Remarks
A custom string never contains formatting parameters. It is the responsibility of of the caller to parse a formatting string and invoke WriteCustomString(ArraySegment<Char>) and WriteCustomParameter<T>(Int32, ArraySegment<Char>, T) in alternation.
WriteCustomString(in CharSpan)
Write a custom string passed as an CharSpan.
Declaration
public override void WriteCustomString(in CharSpan str)
Parameters
Type | Name | Description |
---|---|---|
CharSpan | str | The string to be written. |
Overrides
Remarks
A custom string never contains formatting parameters. It is the responsibility of of the caller to parse a formatting string and invoke WriteCustomString(in CharSpan) and WriteCustomParameter<T>(Int32, in CharSpan, T, in CustomLogParameterOptions) in alternation.