Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

YamlQueryMatch

OfficeIMO.Yaml

Namespace
OfficeIMO.Yaml
Assembly
OfficeIMO.Yaml
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

A node a query selected, with the path that addresses it.

Inheritance

  • object
  • YamlQueryMatch

Usage

Explore 6 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 6

Methods

public override string ToString() #

Returns the path and the node's start position.

Returns

string

Properties

public YamlNode Node { get; } #

Gets the selected node as written: a value reached through an alias is the alias's anchored node, and a mapping value written as an alias is the YamlAlias. YamlNode.Start and YamlNode.End give its source position.

public string Path { get; } #

Gets the path of the node in the grammar YamlNode.Select reads, relative to where the query ran: Select(Path) on that node or document returns YamlQueryMatch.Node. The root is $.