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

ObexClientSession.ConnectionId Property

Gets or sets the OBEX session's Connection Identifier.

[Visual Basic]
Public Property ConnectionId As Integer
[C#]
public int ConnectionId {get; set;}

Remarks

This value is set automatically if the server includes one in its response to Connect, and it shouldn't need to be set in normal circumstances. If a valid value has been set it will be added to any subsequent commands sent to the peer. get will throw NotSupportedException, if no value has been set, see TryGetConnectionId for an equivalent function but in the Try-Parse pattern. The value passed to set is also checked and if the invalid connection identifier (see InvalidConnectionId) is passed it will throw ArgumentException. To clear the value use ClearConnectionId.

See Also

ObexClientSession Class | Brecham.Obex Namespace | ClearConnectionId | TryGetConnectionId | InvalidConnectionId