DicomObjects.NET8 Documentation
DicomObjects.DicomWeb Namespace / WadoEventArgs Class / ReturnError Method
HttpStatusCode to return to web client
Custom Error Message to return to Web Client



In This Topic
    ReturnError Method (WadoEventArgs)
    In This Topic
    Return Custom HTTP Resposne to Web Client
    Syntax
    'Declaration
     
    
    Public Sub ReturnError( _
       ByVal Code As HttpStatusCode, _
       ByVal ErrorMessage As String _
    ) 
    'Usage
     
    
    Dim instance As WadoEventArgs
    Dim Code As HttpStatusCode
    Dim ErrorMessage As String
     
    instance.ReturnError(Code, ErrorMessage)
    public void ReturnError( 
       HttpStatusCode Code,
       string ErrorMessage
    )
    public:
    void ReturnError( 
       HttpStatusCode Code,
       String^ ErrorMessage
    ) 

    Parameters

    Code
    HttpStatusCode to return to web client
    ErrorMessage
    Custom Error Message to return to Web Client
    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