ServiceRecordHelperGetL2CapChannelNumber Method
Reads the L2CAP Channel Number value from the service record,
or returns -1 if the element is not present.
Namespace: InTheHand.Net.Bluetooth.SdpAssembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
public static int GetL2CapChannelNumber(
ServiceRecord record
)
Public Shared Function GetL2CapChannelNumber (
record As ServiceRecord
) As Integer
public:
static int GetL2CapChannelNumber(
ServiceRecord^ record
)
static member GetL2CapChannelNumber :
record : ServiceRecord -> int
- record ServiceRecord
- The ServiceRecord
to search for the element.
Int32The PSM number as an uint16 cast to an Int32,
or -1 if at the
ProtocolDescriptorList
attribute is missing or contains invalid elements.