YamlHelper.ToYaml method

Serializes any PowerShell object to YAML format.

public static string ToYaml(object? input)
parameter description
input The PowerShell object to serialize. Can be null.

Return Value

A string containing the YAML representation of the input object.

See Also