Share via


ComposeFile.ToYaml(String) Method

Definition

Converts the current instance of ComposeFile to its YAML string representation.

public string ToYaml(string lineEndings = "\n");
member this.ToYaml : string -> string
Public Function ToYaml (Optional lineEndings As String = "\n") As String

Parameters

lineEndings
String

Specifies the line endings to be used in the serialized YAML output. Defaults to "\n".

Returns

A string containing the YAML representation of the ComposeFile instance.

Applies to