Gets or sets the time-out value (in milliseconds) for a request.

Namespace:  Rebex.Net
Assembly:  Rebex.Ftp (in Rebex.Ftp.dll)

Syntax

Visual Basic
Public Overrides Property Timeout As Integer
	Get
	Set
C#
public override int Timeout { get; set; }

Remarks

The length of time, in milliseconds, until the request times out, or the value of -1 or 0 to indicate that the request does not time out. Default is -1.

Timeout is the number of milliseconds that a synchronous request made with the GetResponse()()()() method waits for a response, and the GetRequestStream()()()() methods waits for a stream. If a resource does not respond within the time-out period, the request throws a WebException with the Status property set to Timeout.

The Timeout property has no effect on asynchronous requests made with the BeginGetResponse(AsyncCallback, Object) or BeginGetRequestStream(AsyncCallback, Object) methods.

Minimal value is 1000. Setting this to a value lower than 1000 will set it to 1000.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also