SPUtility.HexStringToByteArray method

Converts a hex string like "0x1234abcd" to the byte array that it represents.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function HexStringToByteArray ( _
    hexValue As String _
) As Byte()
'Usage
Dim hexValue As String
Dim returnValue As Byte()

returnValue = SPUtility.HexStringToByteArray(hexValue)
public static byte[] HexStringToByteArray(
    string hexValue
)

Parameters

Return value

Type: []
A byte array containing the binary representation of [hexValue].

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace