Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Appends the default line terminator to the end of the current StringBuilder object.
Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Function AppendLine As StringBuilder
public StringBuilder AppendLine()
public:
StringBuilder^ AppendLine()
member AppendLine : unit -> StringBuilder
public function AppendLine() : StringBuilder
Return Value
Type: System.Text. . :: . .StringBuilder
A reference to this instance after the append operation has completed.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Enlarging the value of this instance would exceed MaxCapacity. |
Remarks
The default line terminator is the current value of the Environment.NewLine property.
The capacity of this instance is adjusted as needed.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.