GetBytes Method (String)

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

When overridden in a derived class, encodes all the characters in the specified string into a sequence of bytes.

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

public virtual byte[] GetBytes(
	string s
)

Parameters

s
Type: System..::..String
The string containing the characters to encode.

Return Value

Type: array<System..::..Byte>[]()[][]
A byte array containing the results of encoding the specified set of characters.

Show: