PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / ICustom­Log­Record­Builder Interface / ICustom­Log­Record­Builder Methods / ICustom­Log­Record­Builder.​Write­Custom­Parameter(T) Method

ICustomLogRecordBuilder.WriteCustomParameter<T> Method

Writes a custom parameter.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
void WriteCustomParameter<T>(
	int index,
	 in CharSpan parameterName,
	T value,
	 in CustomLogParameterOptions options
)

Parameters

index
Type: System.Int32
Index of the parameter (zero-based).
parameterName
Type: PostSharp.Patterns.Formatters.CharSpanInAttribute
Name of the parameter.
value
Type: T
Value of the parameter.
options
Type: PostSharp.Patterns.Diagnostics.Custom.CustomLogParameterOptionsInAttribute
Options.

Type Parameters

T
Type of the parameter value.
See Also