<PackageReference Include="NLog" Version="6.2.0" />

NLog.Targets.MethodCallParameter

public class MethodCallParameter
A parameter to MethodCall.
public Layout DefaultValue { get; set; }

Gets or sets the fallback value when result value is not available

public Layout Layout { get; set; }

Gets or sets the layout used for rendering the method-parameter value.

public string Name { get; set; }

Gets or sets the name of the parameter.

public Type ParameterType { get; set; }

Gets or sets the type of the parameter.

public Type Type { get; set; }

Obsolete and replaced by ParameterType with NLog v4.6. Gets or sets the type of the parameter. Obsolete alias for ParameterType

Initializes a new instance of the MethodCallParameter class.

public MethodCallParameter(Layout layout)

Initializes a new instance of the MethodCallParameter class.

public MethodCallParameter(string parameterName, Layout layout)

Initializes a new instance of the MethodCallParameter class.

public MethodCallParameter(string name, Layout layout, Type type)

Initializes a new instance of the MethodCallParameter class.

public object RenderValue(LogEventInfo logEvent)

Render Result Value