Converts the string representation of a Bluetooth address to a new BluetoothAddress instance.
| C# | Visual Basic |
public static BluetoothAddress Parse( string bluetoothString )
Public Shared Function Parse ( _ bluetoothString As String _ ) As BluetoothAddress
- bluetoothString (String)
- A string containing an address to convert.
New BluetoothAddress instance.
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.
| Exception | Condition |
|---|---|
| ArgumentNullException | bluetoothString is null. |
| FormatException | bluetoothString is not a valid Bluetooth address. |