Encoding::GetChars Method (array<Byte>)
When overridden in a derived class, decodes all the bytes in the specified byte array into a set of characters.
Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Parameters
- bytes
- Type: array<System::Byte>
The byte array containing the sequence of bytes to decode.
Return Value
Type: array<System::Char>A character array containing the results of decoding the specified sequence of bytes.
| Exception | Condition |
|---|---|
| ArgumentNullException | bytes is nullptr. |
| DecoderFallbackException | A fallback occurred (see Understanding Encodings for complete explanation). |
If the data to be converted is available only in sequential blocks (such as data read from a stream) or if the amount of data is so large that it needs to be divided into smaller blocks, the application should use the Decoder or the Encoder provided by the GetDecoder method or the GetEncoder method, respectively, of a derived class.
For a discussion of programming considerations for use of this method, see the Encoding class description.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.