YamlDocument Class
Represents the Yaml Document.
public class YamlDocument : YamlNode- Inheritance
YamlNodeYamlDocument
Constructors
| Name | Description |
|---|---|
| YamlDocument() | Initializes a new instance of this type. |
YamlDocument()
YamlDocument.csInitializes a new instance of this type.
public YamlDocument()Properties
| Name | Description |
|---|---|
| Contents | Gets contents. |
| DocumentEnd | Gets document End. |
| DocumentStart | Gets document Start. |
Contents
YamlDocument.csDocumentEnd
YamlDocument.csDocumentStart
YamlDocument.csMethods
| Name | Description |
|---|---|
| DeepClone() | Creates a deep clone of the current value. |
| Load(EventReader) | Loads data. |
| Load(EventReader, YamlSerializerOptions?) | Loads data, honoring the anchor, alias and alias-expansion limits of options. |
DeepClone()
YamlDocument.csLoad overloads
Load(EventReader)
YamlDocument.csLoads data.
public static YamlDocument Load(EventReader eventReader)Load(EventReader, YamlSerializerOptions?)
YamlDocument.csLoads data, honoring the anchor, alias and alias-expansion limits of options.
public static YamlDocument Load(EventReader eventReader, YamlSerializerOptions? options)Parameters
eventReaderEventReader- The event reader.
optionsYamlSerializerOptions?- The options used to bound alias expansion. If
null,YamlSerializerOptions.Defaultis used.