Gets the http response code for a failed web request.

Declaration Syntax

Function GetResponseCode( _
	ByVal exception As WebException _
) As Integer
int GetResponseCode(
	WebException exception
);
int GetResponseCode(
	WebException exception
);
function GetResponseCode(
	exception : WebException
) : int;

Parameters

exception
The System.Exception thrown when the request failed. 

Return Value

A number representing the http response code for the failure.

Example

If the request failed because the requested Uri could not be found, this function will return
404
.

Requirements

Namespace: Eas.WebCrawler.Model.Gateway
Assembly: Eas.WebCrawler.Model.Gateway (eas.webcrawler.model.gateway.dll)

See Also

WebGateway Interface | WebGateway Members | Eas.WebCrawler.Model.Gateway Namespace