WebResponseValidatorValidateRedirectResponse Method |
Namespace:
NScrape
Assembly:
NScrape (in NScrape.dll) Version: 0.4.1.0
Syntax public static RedirectedWebResponse ValidateRedirectResponse(
WebResponse response,
string message
)
Public Shared Function ValidateRedirectResponse (
response As WebResponse,
message As String
) As RedirectedWebResponse
public:
static RedirectedWebResponse^ ValidateRedirectResponse(
WebResponse^ response,
String^ message
)
static member ValidateRedirectResponse :
response : WebResponse *
message : string -> RedirectedWebResponse
Parameters
- response
- Type: NScrapeWebResponse
The web response to be validated. - message
- Type: SystemString
The error message to be used to generate an exception if the validation fails.
Return Value
Type:
RedirectedWebResponseThe web response cast as a
RedirectedWebResponse.
See Also