DicomObjects.NET Core Documentation
DicomObjects Namespace / DicomServer Class / DefaultStatus Property



In This Topic
    DefaultStatus Property
    In This Topic
    The default status code to be returned in response to incoming requests
    Syntax
    'Declaration
     
    
    Public Property DefaultStatus As Integer
    'Usage
     
    
    Dim instance As DicomServer
    Dim value As Integer
     
    instance.DefaultStatus = value
     
    value = instance.DefaultStatus
    public int DefaultStatus {get; set;}
    public:
    property int DefaultStatus {
       int get();
       void set (    int value);
    }
    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. Under some circumstances, however (such as when a message box is displayed in Visual Basic), events my 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

    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 erc.

    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