Condividi tramite


CryptographicBuffer.DecodeFromHexString(String) Metodo

Definizione

Decodifica una stringa con codifica esadecimale.

public:
 static IBuffer ^ DecodeFromHexString(Platform::String ^ value);
 static IBuffer DecodeFromHexString(winrt::hstring const& value);
public static IBuffer DecodeFromHexString(string value);
function decodeFromHexString(value)
Public Shared Function DecodeFromHexString (value As String) As IBuffer

Parametri

value
String

Platform::String

winrt::hstring

Stringa di input codificata.

Restituisce

Buffer di output contenente la stringa decodificata.

Esempio

public void EncodeDecodeHex()
{
    // Define a hexadecimal string.
    String strHex = "30310AFF";

    // Decode a hexadecimal string to binary.
    IBuffer buffer = CryptographicBuffer.DecodeFromHexString(strHex);

    // Encode the buffer back into a hexadecimal string.
    String strHexNew = CryptographicBuffer.EncodeToHexString(buffer);
}

Si applica a