Exception | Description |
---|---|
System.ArgumentNullException | bytes is null.-or- chars is null. |
System.ArgumentOutOfRangeException | byteIndex or byteCount or charIndex is less than zero.-or- byteIndex and byteCount do not denote a valid range in bytes.-or- charIndex is not a valid Index in chars. |
System.ArgumentException | chars does not have enough capacity from charIndex to the End of the array to accommodate the resulting characters. |
System.Text.DecoderFallbackException | A fallback occurred (see Understanding Encodings for complete explanation). |
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2