ServiceRecordHelperGetRfcommChannelNumber Method
Reads the RFCOMM 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 GetRfcommChannelNumber(
ServiceRecord record
)
Public Shared Function GetRfcommChannelNumber (
record As ServiceRecord
) As Integer
public:
static int GetRfcommChannelNumber(
ServiceRecord^ record
)
static member GetRfcommChannelNumber :
record : ServiceRecord -> int
- record ServiceRecord
- The ServiceRecord
to search for the element.
Int32The Channel Number as an unsigned byte cast to an Int32,
or -1 if at the
ProtocolDescriptorList
attribute is missing or contains invalid elements.