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

LogRecordBuilder.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.7.12.0 (6.7.12.0)
Syntax
C#
public virtual 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