PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Record­BuildersText­Log­Record­BuilderAdd­Hidden­Custom­Parameter
Open sandboxFocus

TextLogRecordBuilder.AddHiddenCustomParameter Method

AddHiddenCustomParameter<T>(Int32, CharSpan, T, in CustomLogParameterOptions, IFormatter<T>)

Method invoked by WriteCustomParameter<T>(Int32, ArraySegment<Char>, T, IFormatter<T>) when for parameter mode is Hidden. The default implementation does not do anything.

Declaration
protected virtual void AddHiddenCustomParameter<T>(int index, CharSpan parameterName, T value, in CustomLogParameterOptions options, IFormatter<T> formatter)
Parameters
Type Name Description
Int32 index
CharSpan parameterName
T value
CustomLogParameterOptions options
IFormatter<T> formatter
Type Parameters
Name Description
T

Type of the parameter value.