WebResponseValidatorValidatePlaintextResponse Method |
Namespace:
NScrape
Assembly:
NScrape (in NScrape.dll) Version: 0.4.1.0
Syntax public static PlainTextWebResponse ValidatePlaintextResponse(
WebResponse response,
string message
)
Public Shared Function ValidatePlaintextResponse (
response As WebResponse,
message As String
) As PlainTextWebResponse
public:
static PlainTextWebResponse^ ValidatePlaintextResponse(
WebResponse^ response,
String^ message
)
static member ValidatePlaintextResponse :
response : WebResponse *
message : string -> PlainTextWebResponse
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:
PlainTextWebResponseThe web response cast as a
PlainTextWebResponse.
See Also