Click or drag to resize

ComPort Methods

The ComPort type exposes the following members.

Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodSend(String) Function for the user to send a string out the com port.
Public methodSend(Char, Int32) Function for the user to send a character array using the specified start and length. Does not update the TransmitString property to avoid string allocation overhead.
Public methodSendShortBreak Function for sending a short break.
Public methodSetComPortSpec(ComPortComPortSpec) Function to set the COM port's specification as defined in the ComPortSpec structure.
Public methodSetComPortSpec(ComPorteComBaudRates, ComPorteComDataBits, ComPorteComParityType, ComPorteComStopBits, ComPorteComProtocolType, ComPorteComHardwareHandshakeType, ComPorteComSoftwareHandshakeType, Boolean) Function to set the com spec for the specified COM Port
Public methodUnRegister Function to unregister the ComPort, if registered.
(Overrides PortDevice.UnRegister)
Top
See Also