YamlTokenType
OfficeIMO.Yaml
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.
Returned or exposed by 13
- Property YamlReader.TokenType
- Field YamlTokenType.Alias
- Field YamlTokenType.Comment
- Field YamlTokenType.DocumentEnd
- Field YamlTokenType.DocumentStart
- Field YamlTokenType.MappingEnd
- Field YamlTokenType.MappingStart
- Field YamlTokenType.None
- Field YamlTokenType.Scalar
- Field YamlTokenType.SequenceEnd
- Field YamlTokenType.SequenceStart
- Field YamlTokenType.StreamEnd
- Field YamlTokenType.StreamStart
Inherited Methods
public string ToString(IFormatProvider? provider) #Obsolete("The provider argument is not used. Use ToString() instead.")Parameters
- provider IFormatProvider?
Returns
stringpublic string ToString(string? format, IFormatProvider? provider) #Obsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format string?
- provider IFormatProvider?
Returns
stringValues
public const YamlTokenType None #The reader has not been advanced yet, or it has passed the end of the stream.
0public const YamlTokenType StreamStart #The start of the stream. It is always the first event.
1public const YamlTokenType DocumentStart #The start of a document. YamlReader.IsImplicit tells whether a --- marker is present.
3public const YamlTokenType DocumentEnd #The end of a document. YamlReader.IsImplicit tells whether a ... marker is present.
4public const YamlTokenType SequenceStart #The start of a sequence. YamlReader.Style is YamlStyle.Block or YamlStyle.Flow.
5public const YamlTokenType MappingStart #The start of a mapping. Its entries follow as alternating key and value nodes.
7public const YamlTokenType Scalar #A scalar node, including the empty node an omitted value stands for.
9public const YamlTokenType Alias #An alias node (*name). YamlReader.Anchor holds the referenced anchor name.
10public const YamlTokenType Comment #A comment. Comment events are produced only when YamlReaderOptions.IncludeComments is set.
11