Session.Abort Method

Forcefully aborts session. Use only in exceptional situations.

To cancel a file transfer, use FileTransferProgressEventArgs.Cancel instead.

Syntax

C#
public void Abort()
VB.NET
Public Sub Abort()