In The Hand
BluetoothSerialPort Class
NamespacesInTheHand.Net.PortsBluetoothSerialPort
.NET Components for Mobility
Represents a virtual COM port.
Declaration Syntax
C#Visual Basic
public class BluetoothSerialPort : IDisposable
Public Class BluetoothSerialPort _
	Implements IDisposable
Members
All MembersMethodsProperties



IconMemberDescription
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)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()
(Overrides 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()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Remarks
Deprecated. Use SetServiceState(Guid, Boolean) to enable a virtual COM port.

Supported on Windows CE Only.

Inheritance Hierarchy
Object
BluetoothSerialPort

Assembly: InTheHand.Net.Personal (Module: InTheHand.Net.Personal) Version: 2.4.0.0