PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​Application­Insights Namespace / Application­Insights­Log­Record­Builder Class / Application­Insights­Log­Record­Builder Methods / Application­Insights­Log­Record­Builder.​Append­Semantic­Parameter Method / Application­Insights­Log­Record­Builder.​Append­Semantic­Parameter Method (Semantic­Parameter­Kind, String, String, String, Int32)

ApplicationInsightsLogRecordBuilder.AppendSemanticParameter Method (SemanticParameterKind, String, String, String, Int32)

Appends a parameter of String type to the current StringBuilder. Back-ends that support semantic logging may store the parameter value semantically instead of appending it to the StringBuilder.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights
Assembly:  PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights (in PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights.dll) Version: 2023.0.3.0 (2023.0.3.0)
protected override void AppendSemanticParameter(
	SemanticParameterKind kind,
	string name,
	string value,
	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: System.String
Parameter 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.
See Also