Creates a Service Record byte array from the given
ServiceRecord object,
into the specified byte array.
| C# | Visual Basic |
public int CreateServiceRecord( ServiceRecord record, byte[] buffer )
Public Function CreateServiceRecord ( _ record As ServiceRecord, _ buffer As Byte() _ ) As Integer
- record (ServiceRecord)
- An instance of ServiceRecord containing the record to be created.
The length of the record in the array of Byte.
See the other overload CreateServiceRecord(ServiceRecord)
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException |
The record bytes are longer that the supplied byte array buffer.
|