asp.net.ph

String.Copy Method

System Namespace   String Class


Creates a new instance of String with the same value as a specified String.

[ VB ]
<Serializable>
Public Shared Function Copy ( _
   ByVal str As String _
) As String

[ C# ]
[ Serializable ]
public static string Copy (
   string str
);

[ C++ ]
[ Serializable ]
public: static String* Copy (
   String* str
);

[ JScript ]
public Serializable
static function Copy (
   str : String
) : String;

Parameters

str
The String to copy.

Return Value

A new String with the same value as str.

Exceptions


Exception Type Condition
ArgumentNullException str is a null reference ( Nothing in Visual Basic ).

See Also

String Members   Empty   DBNull 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