UTF8Encoding.GetBytes Method (String)

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

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

public override byte[] GetBytes(
	string s


Type: System.String

The character string to encode.

Return Value

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

.NET Framework

Supported in: 1.1

XNA Framework

Supported in: 3.0, 2.0, 1.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft