Represents a virtual COM port.
| C# | Visual Basic |
public class BluetoothSerialPort : IDisposable
Public Class BluetoothSerialPort _ Implements IDisposable
| All Members | Methods | Properties | |||
| Icon | Member | Description |
|---|---|---|
| Address |
The address of the remote device to which this port will connect (Client Ports only).
| |
| Close()()() |
Closes the virtual serial port releasing all resources.
| |
| CreateClient(String, BluetoothEndPoint) |
Create a client port for connection to a remote device.
| |
| CreateClient(BluetoothEndPoint) |
Create a client port for connection to a remote device. Auto allocates a port from the COM0-9 range.
| |
| CreateServer(String, Guid) |
Create a virtual server port to listen for incoming connections.
| |
| CreateServer(Guid) |
Create a virtual server port to listen for incoming connections. Auto allocates a port from the COM0-9 range.
| |
| Dispose(Boolean) | Releases the unmanaged resources used by the BluetoothSerialPort and optionally releases the managed resources | |
| Dispose()()() | Releases all resources used by the BluetoothSerialPort | |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() | ||
| FromHandle(IntPtr) |
Creates a BluetoothSerialPort instance from an existing open virtual serial port handle.
| |
| GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Handle |
Native handle to virtual port.
| |
| Local |
Specifies whether the port is a local service or for outgoing connections.
| |
| MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| PortName |
The full representation of the port name e.g. "COM5"
| |
| Service |
The Bluetooth service to connect to.
| |
| ToString()()() | (Inherited from Object.) |
Deprecated. Use SetServiceState(Guid, Boolean)
to enable a virtual COM port.
Supported on Windows CE Only.
| Object | |
| BluetoothSerialPort | |