Share via


SPUtility.HexStringToByteArray - Méthode

Convertit une chaîne hexadécimale comme « 0x1234abcd » dans le tableau d'octets qu'il représente.

Espace de noms :  Microsoft.SharePoint.Utilities
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Shared Function HexStringToByteArray ( _
    hexValue As String _
) As Byte()
'Utilisation
Dim hexValue As String
Dim returnValue As Byte()

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

Paramètres

  • hexValue
    Type : System.String

    La chaîne hexadécimale à convertir.

Valeur renvoyée

Type : []
Tableau d'octets contenant la représentation binaire de [hexValue].

Voir aussi

Référence

SPUtility classe

SPUtility - Membres

Microsoft.SharePoint.Utilities - Espace de noms