Exception | Description |
---|---|
System.ArgumentNullException | chars is null.-or- bytes is null. |
System.ArgumentOutOfRangeException | charIndex or charCount or byteIndex is less than zero.-or- charIndex and charCount do not denote a valid range in chars.-or- byteIndex is not a valid Index in bytes. |
System.ArgumentException | bytes does not have enough capacity from byteIndex to the End of the array to accommodate the resulting bytes. |
System.Text.EncoderFallbackException | A fallback occurred (see Understanding Encodings for complete explanation). |
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, 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