Partager via


SoapClient.Timeout Property

The time to wait for a response from a SendRequestResponse operation.

Namespace: Microsoft.Web.Services3.Messaging
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim soapClient1 As SoapClient

Dim returnValue As Integer
returnValue = soapClient1.Timeout

Dim sampleValue As Integer
soapClient1.Timeout = sampleValue

Syntax

'Declaration
Public Property Timeout() As Integer
public int Timeout {get; set;}
public:
property int Timeout {
    int get();
    void set(int value);
}
public int get_Timeout();
public void set_Timeout(int);
public function get Timeout() : int;
public function set Timeout(int);

Property Value

The time, in milliseconds, to wait for a response from a synchronous request. The default value is 120000 (2 minutes).

Exceptions

Exception type Condition
ArgumentOutOfRangeException

Timeout is set to a value less than or equal to zero, not including -1.

Remarks

Setting the Timeout property to -1 specifies that the time-out is infinite.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

SoapClient Class
SoapClient Members
Microsoft.Web.Services3.Messaging Namespace