Table of Contents

Class SequenceValue

Namespace
Serilog.Events
Assembly
Serilog.dll

A value represented as an ordered sequence of values.

public class SequenceValue : LogEventPropertyValue, IFormattable
Inheritance
SequenceValue
Implements
Inherited Members

Constructors

SequenceValue(IEnumerable<LogEventPropertyValue>)

Create a SequenceValue with the provided elements.

public SequenceValue(IEnumerable<LogEventPropertyValue> elements)

Parameters

elements IEnumerable<LogEventPropertyValue>

The elements of the sequence.

Exceptions

ArgumentNullException

When elements is

null

Properties

Elements

The elements of the sequence.

public IReadOnlyList<LogEventPropertyValue> Elements { get; }

Property Value

IReadOnlyList<LogEventPropertyValue>

Empty

Empty sequence of values.

public static SequenceValue Empty { get; }

Property Value

SequenceValue

Methods

Render(TextWriter, string?, IFormatProvider?)

Render the value to the output.

public override void Render(TextWriter output, string? format = null, IFormatProvider? formatProvider = null)

Parameters

output TextWriter

The output.

format string

A format string applied to the value, or null.

formatProvider IFormatProvider

A format provider to apply to the value, or null to use the default.

Exceptions

ArgumentNullException

When output is

null
See Also