asp.net.ph

String Constructor ( Char, Int32 )

System Namespace   String Class


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

[ VB ]
<Serializable>
Public Sub New ( _
   ByVal c As Char, _
   ByVal count As Integer _
)

[ C# ]
[ Serializable ]
public String (
   char c,
   int count
);

[ C++ ]
[ Serializable ]
public: String (
   __wchar_t c,
   int count
);

[ JScript ]
public Serializable
function String (
   c : Char,
   count : int
);

Parameters

c
A Unicode character.
count
The number of times c occurs.

Exceptions


Exception Type Condition
ArgumentOutOfRangeException count is less than zero.

Remarks

If count is zero, an Empty instance is initialized.

See Also

String Members   String Constructor Overload List   Char   Int32 Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph