Export (0) Print
Expand All

UTF8Encoding.GetBytes Method (String)

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

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

public override byte[] GetBytes(
	string s
)

Parameters

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

Return Value

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

For complete documentation, see the base class topic, Encoding.GetBytes(String).

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show:
© 2015 Microsoft