PostSharp5.0//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Record­Builders Namespace/Text­Log­Record­Builder Class/Text­Log­Record­Builder Methods/Text­Log­Record­Builder.​Append­Semantic­Parameter Method/Text­Log­Record­Builder.​Append­Semantic­Parameter(T) Method (Semantic­Parameter­Kind, String, T, IFormatter(T), String, Int32)

TextLogRecordBuilder.AppendSemanticParameter<T> Method (SemanticParameterKind, String, T, IFormatter<T>, String, Int32)

Appends a parameter to the current StringBuilder, where the name is given as a String, and uses a specific formatter. Back-ends that support semantic logging may store the parameter value semantically instead of appending it to the StringBuilder.

Namespace:  PostSharp.Patterns.Diagnostics.RecordBuilders
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: (
protected virtual void AppendSemanticParameter<T>(
	SemanticParameterKind kind,
	string name,
	T value,
	IFormatter<T> formatter,
	string prefix = null,
	int index = -1


Type: PostSharp.Patterns.Diagnostics.RecordBuilders.SemanticParameterKind
Kind of semantic parameter.
Type: System.String
Parameter name. The name parameter itself is not guaranteed to be unique in a given record. However, in combination with prefix and index, it is guaranteed to be unique.
Type: T
Parameter value.
Type: PostSharp.Patterns.Formatters.IFormatter<T>
The formatter to be used to format value.
prefix (Optional)
Type: System.String
Prefix to be prepended to name, or null if there is no prefix.
index (Optional)
Type: System.Int32
Index of the parameter value, if there are several values for the same parameter name, or -1 if there is a single parameter value for this parameter name.

Type Parameters

See Also