BluetoothAddressParse Method

Converts the string representation of a Bluetooth address to a new BluetoothAddress instance.

Definition

Namespace: InTheHand.Net
Assembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public static BluetoothAddress Parse(
	string bluetoothString
)

Parameters

bluetoothString  String
A string containing an address to convert.

Return Value

BluetoothAddress
New BluetoothAddress instance.

Remarks

Address must be specified in hex format optionally separated by the colon or period character e.g. 000000000000, 00:00:00:00:00:00 or 00.00.00.00.00.00.

Exceptions

ArgumentNullExceptionbluetoothString is null.
FormatExceptionbluetoothString is not a valid Bluetooth address.

See Also