DicomObjects Reference
DicomObjects Reference / DicomServer Object / DefaultStatus Property
In This Topic
    DefaultStatus Property
    In This Topic
    Description
    Default status to be returned if event not captured
    Property type
    Read-write property
    Syntax
    Visual Basic
    Public Property DefaultStatus As Long
    Remarks

    When incoming requests such as C-STORE, C-ECHO or normalised operations are received, a status code must be returned to the sender.  Normally, this is supplied either by the final value of the “Status” parameter to the VerifyReceived or InstanceReceived event, or for C-STORE operation by a SendStatus call.  Under some circumstances, however (such as when a message box is displayed in Visual Basic), events may not be fired, so this property provides a default value.  It is used in the following circumstances:

    • It provides the initial value for the Status parameter for an InstanceReceived or VerifyReceved event
    • It provides the definitive value if the appropriate event is not fired or not captured
    • It is sent as the status if no call to SendStatus is made before the DicomConnection object is released.

    Servers should normally set this value to a suitable error code, so that sending applications are alerted when an image cannot be handled due to server errors etc.

    See Also