Windows apps
Collapse the table of content
Expand the table of content

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)

new : 
        c:char * 
        count:int -> String


Type: System..::..Char
A Unicode character.
Type: System..::..Int32
The number of times c occurs.

If count is zero, an Empty instance is initialized.

© 2017 Microsoft