VB.NET String CopyTo method Copies a specified number of characters from a specified position in this instance to a specified position in an array of characters.
System.String.CopyTo(ByVal sourceIndex As Integer, ByVal destination() As Char, ByVal destinationIndex As Integer, ByVal count As Integer)
Parameters:
Integer sourceIndex : The starting position of the source String
Char destination() : The character Array
Integer destinationIndex : Array element in the destination
Integer count : The number of characters to destination
Exceptions:
System.ArgumentNullException : If the destination is null
System.ArgumentOutOfRangeException :
Source Index, DestinationIndes or Count is a -ve value
Count is greater than the length of the substring from startIndex to the end of this instance
count is greater than the length of the subarray from destinationIndex to the end of destination
VB.NET SourceCode
When you run this Source code you will get CopyTo in MessageBox