Converts a region of an array of unsigned bytes into a string.
[Visual Basic] Overloads Public Shared Function ToString( _ ByVal value() As Byte, _ ByVal startIndex As Integer _ ) As String [C#] public static string ToString( byte[] value, int startIndex ); [C++] public: static String* ToString( unsigned char* value[], int startIndex ); [JScript] public static function ToString( value : Byte[], startIndex : int ) : String;
A list of hexadecimal pairs representing the corresponding entries in value beginning at startIndex. The hexadecimal pairs are separated by hyphens (for example, "7F-2C-4A").
Exception Type | Condition |
---|---|
ArgumentException | value is a null reference (in Visual Basic Nothing). |
ArgumentException | startIndex is less than zero. |
BitConverter Class | BitConverter Members | System Namespace | BitConverter.ToString Overload List