DicomObjects.NET.8.48 Documentation
DicomObjects.DicomWeb Namespace / QidoEventArgs Class / ReturnError Method
HttpStatusCode
Custom Error Message to return to Web Client






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

    Parameters

    Code
    HttpStatusCode
    ErrorMessage
    Custom Error Message to return to Web Client
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also