Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
HexStringToByteArray method
Collapse the table of content
Expand the table of content

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
)

Parameters

hexValue
Type: System.String

The hex string to be converted.

Return value

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