DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomAssociation Class / Cancel Method
Example

In This Topic
    Cancel Method
    In This Topic
    Causes a C-CANCEL request to be sent to the remote AE asking it to terminate any outstanding image transfers
    Syntax
    'Declaration
     
    
    Public Sub Cancel() 
    public void Cancel()
    Remarks
    The C-CANCEL request is sent between images so a single image transfer may not be affected.
    Example
    DicomAssociation cn = new DicomAssociation();  
    cn.Open("localhost", 104, "callingAET", "calledAET");
                        
    // Perform your operation here
    // ...
                        
    cn.Cancel();
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also