In The Hand
ToString Method
NamespacesInTheHand.NetBluetoothEndPointToString()()()
.NET Components for Mobility
Returns the string representation of the BluetoothEndPoint.
Declaration Syntax
C#Visual Basic
public override string ToString()
Public Overrides Function ToString As String
Return Value
The string representation of the BluetoothEndPoint.
Remarks

We try to follow existing examples where possible; JSR-82 and similar use a URI of the form:

CopyC#
bluetooth://xxxxxxxxxxxx:xx
or:
CopyC#
bluetooth://xxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
or in some serialport only situations:
CopyC#
btspp:

So we follow that pattern here, but of course without the URI prefix. If the form with the URI is required then the prefix can simply be appended.

If the port is non default then we use that, otherwise just the full guid.

Some examples are:

To the ObexObjectPush service:
CopyC#
"04E2030405F6:0000110500001000800000805f9b34fb"
To the SerialPort service:
CopyC#
"04E2030405F6:0000110100001000800000805f9b34fb"
With an Empty service GUID:
CopyC#
"04E2030405F6:00000000000000000000000000000000"
With port 9:
CopyC#
"04E2030405F6:9"

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