<PackageReference Include="Serilog" Version="4.3.2-dev-02419" />

Serilog.Parsing.PropertyToken

public sealed class PropertyToken : MessageTemplateToken
A message template token representing a log event property.
public Alignment? Alignment { get; }

Alignment applied to the property.

public Destructuring Destructuring { get; }

Destructuring strategy applied to the property.

public string Format { get; }

Format applied to the property.

public bool IsPositional { get; }

true if the property name is a positional index; otherwise, false.

public string PropertyName { get; }

The property name.

public PropertyToken(string propertyName, string rawText, string format = null, ref Nullable alignment = null, Destructuring destructuring = 0)

Construct a PropertyToken.

public bool TryGetPositionalValue(out int position)

Try to get the integer value represented by the property name.