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
- c
Type: System. . :: . .Char
A Unicode character.
- count
Type: System. . :: . .Int32
The number of times c occurs.
Remarks
If count is zero, an Empty instance is initialized.
.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.