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

ObexClientSession.Abort Method (String)

Abort any existing operation and send an Abort command to the peer, giving the supplied string as the reason for disconnecting.

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

Parameters

reason
A string containing a user readable description.

Remarks

Abort any existing operation and send an Abort command to the peer, giving the supplied string as the reason for disconnecting. 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.

This is the only operation that it is legal to call whilst another operation is in progress.

See Also

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