Share via


String Constructor (Char, Int32)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Initializes a new instance of the String class to the value indicated by a specified Unicode character repeated a specified number of times.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Sub New ( _
    c As Char, _
    count As Integer _
)
public String(
    char c,
    int count
)
public:
String(
    wchar_t c, 
    int count
)
new : 
        c:char * 
        count:int -> String
public function String(
    c : char, 
    count : int
)

Parameters

Remarks

If count is zero, an Empty instance is initialized.

.NET Framework Security

See Also

Reference

String Class

String Overload

System Namespace