ASCIIEncoding: GetMaxCharCount |
Returns the maximum number of characters than can be decoded from the number of bytes specified.
Public Function GetMaxCharCount( ByVal ByteCount As Long ) As Long
Exception | Condition |
---|---|
ArgumentOutOfRangeException |
ByteCount is less than zero. -or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. |