The CommPort type exposes the following members.
Constructors
Methods
Name | Description | |
---|---|---|
![]() ![]() | Check |
Check to see if a port can be opened.
|
![]() | Close |
Close the serial port
|
![]() | DiscardBuffers |
If port is open flush both the in and out buffers
|
![]() | Dispose |
Implement IDisposable
|
![]() ![]() | EnumeratePorts |
List the comm ports available on a system.
|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() | GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() | Open | Overloaded. |
![]() | OpenPolled |
Open a serial port at the default baudrate in polled mode
|
![]() | ToString | (Inherited from Object.) |
![]() | Write | Overloaded. |
Fields
Name | Description | |
---|---|---|
![]() ![]() | DefaultBaudRate |
Standard baudrate
|
Properties
Name | Description | |
---|---|---|
![]() ![]() | ForceStopEnumerating |
Flag to terminate an ennumeration sequence which can possibly take a while.
|
![]() | IsOpen |
Gets a value indicating whether the port is open.
|
![]() | ReadTimeout |
Set read timeout in mS
|
![]() | RxCount |
Get the number of bytes in the recieve buffer
This is used for polled operation
|
![]() | RxData |
Get the data in the recieve buffer
This is used for polled operation
|
![]() | SimpleName |
Simple name of the fome COM#
|
![]() | WriteTimeout |
Set write timeout in mS
|
Events
Name | Description | |
---|---|---|
![]() | ReceivedData |
Event fires on reception of serial port data
|