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) | ||
| Dispose()()() | ||
| 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. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (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 [!:BluetoothDeviceInfo.SetServiceState] to enable a virtual COM port.
Supported on Windows CE Only.
| Object | |
| BluetoothSerialPort | |