This documentation is archived and is not being maintained.

StringBuilder Constructor (String)

.NET Framework 1.1

Initializes a new instance of the StringBuilder class using the specified string.

[Visual Basic]
Public Sub New( _
   ByVal value As String _
)
[C#]
public StringBuilder(
   string value
);
[C++]
public: StringBuilder(
   String* value
);
[JScript]
public function StringBuilder(
   value : String
);

Parameters

value
The string used to initialize the value of the instance. If value is a null reference (Nothing in Visual Basic), the new StringBuilder will contain the empty string (that is, it contains Empty).

Remarks

If value is a null reference (Nothing in Visual Basic), the new StringBuilder will contain the empty string (that is, it contains Empty).

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

StringBuilder Class | StringBuilder Members | System.Text Namespace | StringBuilder Constructor Overload List

Show: