Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Enum

YamlTokenType

OfficeIMO.Yaml

Namespace
OfficeIMO.Yaml
Assembly
OfficeIMO.Yaml
Source revision
0eef6a5756b9 with working tree changes
Base
Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers
sealed

Identifies the event a YamlReader is positioned on. Events follow the YAML 1.2 serialization tree: a stream holds documents, a document holds one root node, and collections hold nodes.

Inheritance

  • Enum
  • YamlTokenType

Usage

Explore 13 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Values

public const YamlTokenType None #

The reader has not been advanced yet, or it has passed the end of the stream.

Value: 0
public const YamlTokenType StreamStart #

The start of the stream. It is always the first event.

Value: 1
public const YamlTokenType StreamEnd #

The end of the stream. It is always the last event.

Value: 2
public const YamlTokenType DocumentStart #

The start of a document. YamlReader.IsImplicit tells whether a --- marker is present.

Value: 3
public const YamlTokenType DocumentEnd #

The end of a document. YamlReader.IsImplicit tells whether a ... marker is present.

Value: 4
public const YamlTokenType SequenceStart #

The start of a sequence. YamlReader.Style is YamlStyle.Block or YamlStyle.Flow.

Value: 5
public const YamlTokenType SequenceEnd #

The end of the innermost open sequence.

Value: 6
public const YamlTokenType MappingStart #

The start of a mapping. Its entries follow as alternating key and value nodes.

Value: 7
public const YamlTokenType MappingEnd #

The end of the innermost open mapping.

Value: 8
public const YamlTokenType Scalar #

A scalar node, including the empty node an omitted value stands for.

Value: 9
public const YamlTokenType Alias #

An alias node (*name). YamlReader.Anchor holds the referenced anchor name.

Value: 10
public const YamlTokenType Comment #

A comment. Comment events are produced only when YamlReaderOptions.IncludeComments is set.

Value: 11