EncodingGetString Method (Byte) |
When overridden in a derived class, decodes all the bytes in the specified byte array into a string.
Namespace: System.TextAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public virtual string GetString(
byte[] bytes
)
Parameters
- bytes
- Type: SystemByte
The byte array containing the sequence of bytes to decode.
Return Value
Type:
StringA
String containing the results of decoding the specified sequence of bytes.
Exceptions Exception | Condition |
---|
ArgumentException | The byte array contains invalid Unicode code points. |
ArgumentNullException | bytes is null. |
DecoderFallbackException | A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)-and-DecoderFallback is set to DecoderExceptionFallback. |
See Also