ReturnError Method (QidoEventArgs)
In This Topic
Return Custom HTTP Resposne to Web Client
Syntax
'Declaration
Public Sub ReturnError( _
ByVal As System.Net.HttpStatusCode, _
ByVal 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 ,
System.string
)
public procedure ReturnError(
: System.Net.HttpStatusCode;
: System.String
);
public function ReturnError(
: System.Net.HttpStatusCode,
: System.String
);
public: void ReturnError(
System.Net.HttpStatusCode ,
System.string*
)
public:
void ReturnError(
System.Net.HttpStatusCode ,
System.String^
)
Parameters
- Code
- HttpStatusCode
- ErrorMessage
- Custom Error Message to return to Web Client
Requirements
Target Platforms: .NET CLR 4.8 or higher
See Also