PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Record­Builders Namespace/Text­Log­Record­Builder Class/Text­Log­Record­Builder Methods/Text­Log­Record­Builder.​Write­Custom­String Method/Text­Log­Record­Builder.​Write­Custom­String Method (Char­Span)

TextLogRecordBuilder.WriteCustomString Method (CharSpan)

Write a custom string passed as an CharSpan.

Namespace:  PostSharp.Patterns.Diagnostics.RecordBuilders
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.6.10.0 (6.6.10.0)
Syntax
C#
public override void WriteCustomString(
	 in CharSpan str
)

Parameters

str
Type: PostSharp.Patterns.Formatters.CharSpanInAttribute
The string to be written.

Implements

ICustomLogRecordBuilder.WriteCustomString(CharSpan)
Remarks
A custom string never contains formatting parameters. It is the responsibility of of the caller to parse a formatting string and invoke WriteCustomString(CharSpan) and WriteCustomParameter<T>(Int32, CharSpan, T, CustomLogParameterOptions) in alternation.
See Also