Gets the http response code for a failed web request.

Declaration Syntax

Public Overridable Function GetResponseCode( _
	ByVal exception As WebException _
) As Integer
public virtual int GetResponseCode(
	WebException exception
);
public: virtual int GetResponseCode(
	WebException exception
);
public 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

BaseWebGateway Class | BaseWebGateway Members | Eas.WebCrawler.Model.Gateway Namespace