PostSharp5.0//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.​Set­Parameter Method/Application­Insights­Log­Record­Builder.​Set­Parameter(T) Method (Int32, String, Parameter­Direction, String, T, IFormatter(T))

ApplicationInsightsLogRecordBuilder.SetParameter<T> Method (Int32, String, ParameterDirection, String, T, IFormatter<T>)

Sets the value of a given parameter and uses the default formatter.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights
Assembly:  PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights (in PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public override void SetParameter<T>(
	int index,
	string parameterName,
	ParameterDirection direction,
	string typeName,
	T value,
	IFormatter<T> formatter
)

Parameters

index
Type: System.Int32
Index of the parameter in the list of method parameters.
parameterName
Type: System.String
Name of the parameter (only included if the IncludeParameterName property is true).
direction
Type: PostSharp.Patterns.Diagnostics.RecordBuilders.ParameterDirection
In, Out or Ref.
typeName
Type: System.String
Formatted name of the type T (only included if the IncludeParameterType property is true).
value
Type: T
Value of the parameter (only included if the IncludeParameterValue property is true).
formatter
Type: PostSharp.Patterns.Formatters.IFormatter<T>
Formatter to be used to format value.

Type Parameters

T
Type of the parameter.
See Also