Constructors: NewUnicodeEncoding

NewUnicodeEncoding

Returns a new UnicodeEncoding object with the specified settings.



 Public Function NewUnicodeEncoding(
	  ByVal BigEndian As Boolean,
	  ByVal ByteOrderMark As Boolean ) As UnicodeEncoding

Parameters

BigEndian
[ByVal] Boolean. Indicates if the byte order for a character should be high byte first (default is low byte first.)
ByteOrderMark
[ByVal] Boolean. Indicates whether or not the encoding should emit the preamble bytes in the GetPreamble method.

Return Values

UnicodeEncoding -  The new UnicodeEncoding object.

Remarks

If ByteOrderMark is True then the GetPreamble will emit one of the following byte arrays.

BigEnding = True: &HFE, &HFF
BigEnding = False: &HFF, &HFE

See Also

Project VBCorLib Overview Class Constructors Overview Constructors Properties Constructors Methods NewUnauthorizedAccessException NewUTF7Encoding