Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeListMerge

OfficeIMO

Namespace
OfficeIMO
Assembly
OfficeIMO.Core
Source revision
78706d0f9c0e with working tree changes
Modifiers
sealed

How a structured-document merge, such as YAML or TOML, combines an overlay list (a YAML sequence, a TOML array or array of tables) with the base list at the same path: OfficeListMerge.Replace (the default), OfficeListMerge.Append or OfficeListMerge.MergeByKey.

Inheritance

  • object
  • OfficeListMerge

Usage

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

Methods

public static OfficeListMerge MergeByKey(string keyName) #

Mapping or table items are matched by the value of a key, for example containers by name: an overlay item merges into the first base item with an equal value under that key that no earlier overlay item matched, and items without a match are appended. A list whose overlay items are not all mappings with a value under the key is replaced as with OfficeListMerge.Replace.

Parameters

keyName string required
The key whose value identifies an item.

Exceptions

  • ArgumentException – keyName is null or empty.

Properties

public static OfficeListMerge Replace { get; } #

The overlay's items replace the base items. Items whose values already match keep their text and comments; only the items that differ change.

public static OfficeListMerge Append { get; } #

The overlay's items are appended after the base items.