Share via


SoapClient.Timeout Property

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

Namespace: Microsoft.Web.Services2.Messaging
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.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 Int32 Timeout{
    Int32 get();
    Void set(Int32);
}
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
System.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 Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

SoapClient Class
Microsoft.Web.Services2.Messaging Namespace

Other Resources

SoapClient Members