ServiceRecordHelperGetL2CapChannelNumber Method

Reads the L2CAP Channel Number value from the service record, or returns -1 if the element is not present.

Definition

Namespace: InTheHand.Net.Bluetooth.Sdp
Assembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public static int GetL2CapChannelNumber(
	ServiceRecord record
)

Parameters

record  ServiceRecord
The ServiceRecord to search for the element.

Return Value

Int32
The PSM number as an uint16 cast to an Int32, or -1 if at the ProtocolDescriptorList attribute is missing or contains invalid elements.

See Also