DicomObjects.NetStandard Documentation
DicomObjects Namespace / DicomAssociation Class / CheckForCancel Property



In This Topic
    CheckForCancel Property
    In This Topic
    Control whether to check for incoming C-CANCEL asynchronous messages
    Syntax
    'Declaration
     
    
    Public Property CheckForCancel As Boolean
    'Usage
     
    
    Dim instance As DicomAssociation
    Dim value As Boolean
     
    instance.CheckForCancel = value
     
    value = instance.CheckForCancel
    public bool CheckForCancel {get; set;}
    public:
    property bool CheckForCancel {
       bool get();
       void set (    bool value);
    }
    Remarks
    When about to send a status response to an SCU, if this property is true (which it is bt default), then DicomObjects check whether there is any incoming data to be read off the network. If there is, then it is received, and checked to see if it is a C-CANCEL message. If it is C-CANCEL, then it is processed, but if it is any other message, then that would be illegal (without asynchronous operation), and an exception is raised.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also