SerialPort::Encoding Property
.NET Framework (current version)
Gets or sets the byte encoding for pre- and post-transmission conversion of text.
Assembly: System (in System.dll)
public: [BrowsableAttribute(false)] property Encoding^ Encoding { Encoding^ get(); void set(Encoding^ value); }
| Exception | Condition |
|---|---|
| ArgumentNullException | The Encoding property was set to null. |
| ArgumentException | The Encoding property was set to an encoding that is not ASCIIEncoding, UTF8Encoding, UTF32Encoding, UnicodeEncoding, one of the Windows single byte encodings, or one of the Windows double byte encodings. |
.NET Framework
Available since 2.0
Available since 2.0
Show: