In The Hand
CreateServiceRecord Method (record, buffer)
NamespacesInTheHand.Net.BluetoothServiceRecordCreatorCreateServiceRecord(ServiceRecord, array<Byte>[]()[])
.NET Components for Mobility
Creates a Service Record byte array from the given ServiceRecord object, into the specified byte array.
Declaration Syntax
C#Visual Basic
public int CreateServiceRecord(
	ServiceRecord record,
	byte[] buffer
)
Public Function CreateServiceRecord ( _
	record As ServiceRecord, _
	buffer As Byte() _
) As Integer
Parameters
record (ServiceRecord)
An instance of ServiceRecord containing the record to be created.
buffer (array< Byte >[]()[])
An array of Byte for the record to be written to.
Return Value
The length of the record in the array of Byte.
Remarks
See the other overload CreateServiceRecord(ServiceRecord)
Exceptions
ExceptionCondition
ArgumentOutOfRangeException The record bytes are longer that the supplied byte array buffer.

Assembly: InTheHand.Net.Personal (Module: InTheHand.Net.Personal) Version: 3.0.0.0