DicomObjects.NET.8.48 Documentation
DicomObjects.DicomWeb Namespace / StowEventArgs Class / SetFailed Method / SetFailed(DicomDataSet,HttpStatusCode) Method
The accepted instance
The HTTP error reason code, which will be returned to the client






In This Topic
    SetFailed(DicomDataSet,HttpStatusCode) Method
    In This Topic
    Indicate that an instance was not accepted
    Syntax
    'Declaration
     
    
    Public Overloads Sub SetFailed( _
       ByVal DataSet As DicomDataSet, _
       ByVal Reason As System.Net.HttpStatusCode _
    ) 
    'Usage
     
    
    Dim instance As StowEventArgs
    Dim DataSet As DicomDataSet
    Dim Reason As System.Net.HttpStatusCode
     
    instance.SetFailed(DataSet, Reason)
    public void SetFailed( 
       DicomDataSet DataSet,
       System.Net.HttpStatusCode Reason
    )
    public procedure SetFailed( 
        DataSet: DicomDataSet;
        Reason: System.Net.HttpStatusCode
    ); 
    public function SetFailed( 
       DataSet : DicomDataSet,
       Reason : System.Net.HttpStatusCode
    );
    public: void SetFailed( 
       DicomDataSet* DataSet,
       System.Net.HttpStatusCode Reason
    ) 
    public:
    void SetFailed( 
       DicomDataSet^ DataSet,
       System.Net.HttpStatusCode Reason
    ) 

    Parameters

    DataSet
    The accepted instance
    Reason
    The HTTP error reason code, which will be returned to the client
    Remarks
    Either this, or SetSuccess should be called for each instance in DataSets before returning from the event
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also