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

ObexClientSession.Disconnect Method (String)

Do a Disconnect command giving the supplied string as the reason for disconnecting. Note that sending a disconnect command is optional, and does not close the connection.

[Visual Basic]
Overloads Public Sub Disconnect( _
   ByVal reason As String _
)
[C#]
public void Disconnect(
   string reason
);

Parameters

reason
A string containing a user readable description.

Remarks

Note, that if the reason string is too large to fit within the maximum size of PDU this it will be discarded and the PDU sent without it.

See Also

ObexClientSession Class | Brecham.Obex Namespace | ObexClientSession.Disconnect Overload List