DicomObjects Reference
DicomObjects Reference / DicomQuery Object / MoveSync Method
In This Topic
    MoveSync Method
    In This Topic
    Description
    Synchronous C-MOVE request with returned status
    Syntax
    Visual Basic
    Public Function MoveSync() As Long
    Remarks

    This method is essentially the same as MoveImages, except that it does not return until the C-MOVE request completes, and can therefore check the final status received from the C-MOVE SCP.
    This method must not be used to transfer images to a listener within the same program (or at least not one created on the same thread), as the AssociationRequest and ImageReceived will not be able to fire, and a deadlock will occur.  It should only therefore be used for genuine third-party C-MOVE requests.

    For applications where it may be necessary to move to the requesting SCU, or where more complete status and feedback information is required, then the DicomConnection.Move method should be considered instead.
    Note: Any status code except 0 (success) will result in a trappable error (1415).  The return values is therefore the number of images transferred.

    See Also