PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Record­Builders Namespace/Log­Record­Builder Class/Log­Record­Builder Methods/Log­Record­Builder.​Write­Custom­Parameter Method/Log­Record­Builder.​Write­Custom­Parameter(T) Method (Int32, Array­Segment(Char), T)

LogRecordBuilder.WriteCustomParameter<T> Method (Int32, ArraySegment<Char>, T)

Writes a custom parameter and uses the default formatter.

Namespace:  PostSharp.Patterns.Diagnostics.RecordBuilders
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.0.35.0 (6.0.35.0)
Syntax
C#
public void WriteCustomParameter<T>(
	int index,
	ArraySegment<char> parameterName,
	T value
)

Parameters

index
Type: System.Int32
Index of the custom parameter in the formatting string.
parameterName
Type: System.ArraySegment<Char>
Name of the custom parameter.
value
Type: T
Value of the custom parameter.

Type Parameters

T
Type of the custom parameter.
See Also