Create a ServiceRecord by parsing
the given array of Byte.
| C# | Visual Basic |
public static ServiceRecord CreateServiceRecordFromBytes( byte[] recordBytes )
Public Shared Function CreateServiceRecordFromBytes ( _ recordBytes As Byte() _ ) As ServiceRecord
- recordBytes (array< Byte >[]()[])
[Missing <param name="recordBytes"/> documentation for "M:InTheHand.Net.Bluetooth.ServiceRecord.CreateServiceRecordFromBytes(System.Byte[])"]
[Missing <returns> documentation for "M:InTheHand.Net.Bluetooth.ServiceRecord.CreateServiceRecordFromBytes(System.Byte[])"]
This uses the ServiceRecordParser
with its default settings.
See Parse(array<Byte>[]()[], Int32, Int32)
for more information. In particular for the errors that can result, two
of which are listed here.
| Exception | Condition |
|---|---|
| ProtocolViolationException |
The record contains invalid content.
|
| NotImplementedException |
The record contains an element type not supported by the parser.
|