ServiceRecordCreateServiceRecordFromBytes Method

Create a ServiceRecord by parsing the given array of Byte.

Definition

Namespace: InTheHand.Net.Bluetooth.Sdp
Assembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public static ServiceRecord CreateServiceRecordFromBytes(
	byte[] recordBytes
)

Parameters

recordBytes  Byte
A byte array containing the encoded Service Record.

Return Value

ServiceRecord
The new ServiceRecord parsed from the byte array.

Remarks

This uses the ServiceRecordParser with its default settings. See Parse(Byte, Int32, Int32) for more information. In particular for the errors that can result, two of which are listed here.

Exceptions

ProtocolViolationException The record contains invalid content.
NotImplementedException The record contains an element type not supported by the parser.

See Also