共用方式為


SPUtility.HexStringToByteArray method

將 like"0x1234abcd"的十六進位字串轉換成它所代表的位元組陣列。

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

Syntax

'宣告
Public Shared Function HexStringToByteArray ( _
    hexValue As String _
) As Byte()
'用途
Dim hexValue As String
Dim returnValue As Byte()

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

參數

傳回值

Type: []
包含**[hexValue]**二進位表示法的位元組陣列。

請參閱

參照

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace