ComposeFile.ToYaml(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.