Click or drag to resize

WebResponseValidatorValidateResponse Method (WebResponse, WebResponseType, String)

Validates a WebResponse to be of a given type.

Namespace:  NScrape
Assembly:  NScrape (in NScrape.dll) Version: 0.4.1.0
Syntax
public static WebResponse ValidateResponse(
	WebResponse response,
	WebResponseType validType,
	string message
)

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: WebResponse
The web response.
See Also