ServiceRecordHelperSetRfcommChannelNumber Method

Sets the RFCOMM Channel Number value in the service record.

Definition

Namespace: InTheHand.Net.Bluetooth.Sdp
Assembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public static void SetRfcommChannelNumber(
	ServiceRecord record,
	byte channelNumber
)

Parameters

record  ServiceRecord
The ServiceRecord in which to set the RFCOMM Channel number.
channelNumber  Byte
The Channel number to set in the record.

Exceptions

InvalidOperationExceptionThe ProtocolDescriptorList attribute is missing or contains invalid elements.

See Also