Constructors: NewUTF8Encoding |
Returns a new UTF8Encoding object.
Public Function NewUTF8Encoding( ByVal ShouldEmitUTF8Identifier As Boolean, Optional ByVal ThrowOnInvalidBytes As Boolean ) As UTF8Encoding
If ThrowOnInvalidBytes is True, a method that detects an invalid byte sequence throws ArgumentException. Otherwise, the method does not throw an exception, and the invalid sequence is ignored.