Class SequenceValue
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
isnull
Properties
Elements
The elements of the sequence.
public IReadOnlyList<LogEventPropertyValue> Elements { get; }
Property Value
Empty
Empty sequence of values.
public static SequenceValue Empty { get; }
Property Value
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
TextWriterThe output.
format
stringA format string applied to the value, or null.
formatProvider
IFormatProviderA format provider to apply to the value, or null to use the default.
Exceptions
- ArgumentNullException
When
output
isnull
- See Also