TextTransformation::WriteLine Method (String^)
Visual Studio 2015
Appends a copy of the specified string and the default line terminator to the generated text output.
Assembly: Microsoft.VisualStudio.TextTemplating.12.0 (in Microsoft.VisualStudio.TextTemplating.12.0.dll)
Parameters
- textToAppend
-
Type:
System::String^
The string to write.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | Enlarging the value of the underlying StringBuilder would exceed MaxCapacity. |
The WriteLine method can be used directly in a text template.
The following code example demonstrates calling the WriteLine method from a text template. Paste this code into any text template file and run the text template transformation to see the results.
This example produces the following output:
This is text to append to my output file.
This is text to append to my output file.
This is text to append to my output file.
This is text to append to my output file.
Show: