Brecham.Obex — An OBEX library for the .NET Framework

ProtocolComboBox.SelectedProtocol Property

Gets the currently selected protocol as an instance of ProtocolFamily.

[Visual Basic]
Public ReadOnly Property SelectedProtocol As ProtocolFamily
[C#]
public System.Net.Sockets.ProtocolFamily SelectedProtocol {get;}

Remarks

This will currently be either 0x20 (&H20 in Visual Basic) for Bluetooth, Irda for IrDA, or InterNetwork for TCP/IP.

Note    The UI control is a DropDownList ComboBox so the user may not type their own value in the control and thus cause an invalid value to be returned. However if any unexpected event occurs to prevent this then the Unspecified value is returned.

See Also

ProtocolComboBox Class | Brecham.Obex.Net.Forms Namespace