Windows apps
Collapse the table of content
Expand the table of content

GetBytes Method (String)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Encodes the characters in a specified String object into a sequence of bytes.

Namespace:  System.Text
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual array<unsigned char>^ GetBytes(
	String^ s
) override

Parameters

s
Type: System..::..String
The character string to encode.

Return Value

Type: array<System..::..Byte>[]()[][]
A byte array that contains the encoded characters in the string specified by the s parameter.

Show:
© 2017 Microsoft