ServiceRecordCreatorCreateServiceRecord(ServiceRecord, Byte) Method

Creates a Service Record byte array from the given ServiceRecord object, into the specified byte array.

Definition

Namespace: InTheHand.Net.Bluetooth.Sdp
Assembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public int CreateServiceRecord(
	ServiceRecord record,
	byte[] buffer
)

Parameters

record  ServiceRecord
An instance of ServiceRecord containing the record to be created.
buffer  Byte
An array of Byte for the record to be written to.

Return Value

Int32
The length of the record in the array of Byte.

Remarks

See the other overload CreateServiceRecord(ServiceRecord)

Exceptions

ArgumentOutOfRangeException The record bytes are longer that the supplied byte array buffer.

See Also