ZylSerialPort.NET

SerialPort Methods

The methods of the SerialPort class are listed below. For a complete list of SerialPort class members, see the SerialPort Members topic.

Public Static (Shared) Methods

ASCIIByteArrayToString Converts ASCII byte array to string.
ByteArrayToDecimalString Converts byte array to decimal string representation.
ByteArrayToHexaString Converts byte array to hexadecimal string representation.
GetCDOverloaded. Returns the state of CD line from lineStatus parameter.
GetCTSOverloaded. Returns the state of CTS line from lineStatus parameter.
GetDSROverloaded. Returns the state of DSR line from lineStatus parameter.
GetExistingCommPorts Returns the existing serial ports of the system.
GetRINGOverloaded. Returns the state of RING line from lineStatus parameter.
SerialCommPortToString Converts SerialCommPort to string.
StringToASCIIByteArray Converts string to ASCII byte array.
StringToSerialCommPort Converts string to SerialCommPort.
StringToUnicodeByteArray Converts string to UTF16 byte array.
StringToUTF7ByteArray Converts string to UTF7 byte array.
StringToUTF8ByteArray Converts string to UTF8 byte array.
UnicodeByteArrayToString Converts UTF16 byte array to string.
UTF7ByteArrayToString Converts UTF7 byte array to string.
UTF8ByteArrayToString Converts UTF8 byte array to string.

Public Instance Methods

ClearInputBuffer clears input buffer
ClearOutputBuffer clears output buffer
Close Closes the serial port.
CreateObjRef (inherited from MarshalByRefObject)Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
Dispose (inherited from Component)Overloaded. Releases all resources used by the Component.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetCDOverloaded. Returns the state of CD line.
GetCTSOverloaded. Returns the state of CTS line.
GetDSROverloaded. Returns the state of DSR line.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetLifetimeService (inherited from MarshalByRefObject)Retrieves the current lifetime service object that controls the lifetime policy for this instance.
GetRINGOverloaded. Returns the state of RING line.
GetType (inherited from Object)Gets the Type of the current instance.
InitializeLifetimeService (inherited from MarshalByRefObject)Obtains a lifetime service object to control the lifetime policy for this instance.
Open Opens the serial port.
SendASCIIString Sends an ASCII string to the serial port.
SendByteArray Sends a byte array to the serial port.
SendUnicodeString Sends a UTF16 string to the serial port.
SendUTF7String Sends a UTF7 string to the serial port.
SendUTF8String Sends a UTF8 string to the serial port.
SetBreak Sets break line.
SetDTR Sets DTR line.
SetRTS Sets RTS line.
SetXonXoff Sets XOnXoff state.
ToString (inherited from Component)Returns a String containing the name of the Component, if any. This method should not be overridden.

Protected Instance Methods

DisposeOverloaded. Clean up any resources being used.
Finalize Destructor.
GetService (inherited from Component)Returns an object that represents a service provided by the Component or by its Container.
MemberwiseClone (inherited from MarshalByRefObject)Overloaded. Creates a shallow copy of the current MarshalByRefObject object.
MemberwiseClone (inherited from Object)Overloaded. Creates a shallow copy of the current Object.
OnConnected Raises the Connected event.
OnDisconnected Raises the Disconnected event.
OnLineStatusChanged Raises the LineStatusChanged event.
OnReceived Raises the Received event.
OnSent Raises the Sent event.

See Also

SerialPort Class | ZylSerialPort Namespace