BinaryStringEncoding Enum

Definition

Contains encoding formats that can be used in the ConvertStringToBinary and ConvertBinaryToString methods.

public enum class BinaryStringEncoding
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class BinaryStringEncoding
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum BinaryStringEncoding
var value = Windows.Security.Cryptography.BinaryStringEncoding.utf8
Public Enum BinaryStringEncoding
Inheritance
BinaryStringEncoding
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Utf16BE 2

Sixteen bit Unicode Transformation Format in big-endian byte order.

Utf16LE 1

Sixteen bit Unicode Transformation Format in little-endian byte order. The encoding process creates a variable length result of one or two 8-bit bytes per Unicode code point.

Utf8 0

Eight bit Unicode Transformation Format. The process encodes each Unicode code point into one to four 8-bit bytes. Code points represented by lower numerical values are encoded using fewer bytes. In particular, the first 128 characters correspond exactly to the ASCII character set and are encoded by using a single octet.

Applies to