ServiceRecordHelperGetRfcommChannelNumber Method

Reads the RFCOMM 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 GetRfcommChannelNumber(
	ServiceRecord record
)

Parameters

record  ServiceRecord
The ServiceRecord to search for the element.

Return Value

Int32
The Channel Number as an unsigned byte cast to an Int32, or -1 if at the ProtocolDescriptorList attribute is missing or contains invalid elements.

See Also