WebResponseValidatorValidateResponse Method (WebResponse, WebResponseType, String) |
Namespace:
NScrape
Assembly:
NScrape (in NScrape.dll) Version: 0.4.1.0
Syntax public static WebResponse ValidateResponse(
WebResponse response,
WebResponseType validType,
string message
)
Public Shared Function ValidateResponse (
response As WebResponse,
validType As WebResponseType,
message As String
) As WebResponse
public:
static WebResponse^ ValidateResponse(
WebResponse^ response,
WebResponseType validType,
String^ message
)
static member ValidateResponse :
response : WebResponse *
validType : WebResponseType *
message : string -> WebResponse
Parameters
- response
- Type: NScrapeWebResponse
The web response to be validated. - validType
- Type: NScrapeWebResponseType
The valid web response type. - message
- Type: SystemString
The error message to be used to generate an exception if the validation fails.
Return Value
Type:
WebResponseThe web response.
See Also