ServiceRecordSourceBytes Property

Get the raw byte array from which the record was parsed.

Definition

Namespace: InTheHand.Net.Bluetooth.Sdp
Assembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public byte[] SourceBytes { get; }

Property Value

Byte
An array of Byte, or if the record was not created by parsing a raw record.

Remarks

A ServiceRecord can be created either by manually building new ServiceAttributes holding new ServiceElements, or it can be created by ServiceRecordParser parsing an array of bytes read from another machine by e.g. GetServiceRecords(Guid). In that case this method returns that source byte array.

To creates a Service Record byte array from the contained ServiceAttributes use ToByteArray or ServiceRecordCreator.

See Also