Click or drag to resize

MessageTemplateParameter Structure

Description of a single parameter extracted from a MessageTemplate

Namespace:  NLog.MessageTemplates
Assembly:  NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax
public struct MessageTemplateParameter

The MessageTemplateParameter type exposes the following members.

Constructors
  NameDescription
Public methodMessageTemplateParameter
Constructs a single message template parameter
Top
Properties
  NameDescription
Public propertyCaptureType
Parameter method that should be used to render the parameter See also IValueFormatter
Public propertyFormat
Format to render the parameter. This is everything between ":" and the first unescaped "}"
Public propertyName
Parameter Name extracted from Message This is everything between "{" and the first of ",:}".
Public propertyPositionalIndex
Returns index for Parameters, when IsPositional
Public propertyValue
Parameter Value extracted from the Parameters-array
Top
Methods
  NameDescription
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
See Also