Converts the string representation of an address to it's BluetoothAddress equivalent.
A return value indicates whether the operation succeeded.
| C# | Visual Basic |
public static bool TryParse( string s, out BluetoothAddress result )
Public Shared Function TryParse ( _ s As String, _ <OutAttribute> ByRef result As BluetoothAddress _ ) As Boolean
- s (String)
- A string containing an address to convert.
- result ( BluetoothAddress %)
- When this method returns, contains the BluetoothAddress equivalent to the address contained in s, if the conversion succeeded, or null (Nothing in Visual Basic) if the conversion failed. The conversion fails if the s parameter is null or is not of the correct format.
true if s is a valid Bluetooth address; otherwise, false.