In The Hand
Parse Method (buffer, offset, length)
NamespacesInTheHand.Net.BluetoothServiceRecordParserParse(array<Byte>[]()[], Int32, Int32)
.NET Components for Mobility
Parses an array of bytes into the contained ServiceRecord.
Declaration Syntax
C#Visual Basic
public ServiceRecord Parse(
	byte[] buffer,
	int offset,
	int length
)
Public Function Parse ( _
	buffer As Byte(), _
	offset As Integer, _
	length As Integer _
) As ServiceRecord
Parameters
buffer (array< Byte >[]()[])

[Missing <param name="buffer"/> documentation for "M:InTheHand.Net.Bluetooth.ServiceRecordParser.Parse(System.Byte[],System.Int32,System.Int32)"]

offset (Int32)

[Missing <param name="offset"/> documentation for "M:InTheHand.Net.Bluetooth.ServiceRecordParser.Parse(System.Byte[],System.Int32,System.Int32)"]

length (Int32)

[Missing <param name="length"/> documentation for "M:InTheHand.Net.Bluetooth.ServiceRecordParser.Parse(System.Byte[],System.Int32,System.Int32)"]

Return Value

[Missing <returns> documentation for "M:InTheHand.Net.Bluetooth.ServiceRecordParser.Parse(System.Byte[],System.Int32,System.Int32)"]

Remarks

If the record contains any element type not supported by the parser it will throw NotImplementedException. The only element types defined by SDP in v2.0 that are not currently implemented are 64- and 128-bit integers. Of course any types defined in a later version will also throw this. This behaviour can be changed with the SkipUnhandledElementTypes property.

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

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