Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SPUtility.HexStringToByteArray method

SharePoint 2013

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

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

public static byte[] HexStringToByteArray(
	string hexValue


Type: System.String

The hex string to be converted.

Return value

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