SoapClient.DefaultTimeout Property
The time to wait for a response from a SendRequestResponse operation for all soap clients.
Namespace: Microsoft.Web.Services3.Messaging
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Dim returnValue As Integer
returnValue = SoapClient.DefaultTimeout
Dim sampleValue As Integer
SoapClient.DefaultTimeout = sampleValue
Syntax
'Declaration
Public Shared Property DefaultTimeout() As Integer
public static int DefaultTimeout {get; set;}
public:
property static int DefaultTimeout {
int get();
void set(int value);
}
public static int get_DefaultTimeout();
public static void set_DefaultTimeout(int);
public static function get DefaultTimeout() : int;
public static function set DefaultTimeout(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 | The DefaultTimeout property is set to a value less than or equal to zero, not including -1. |
Remarks
When you set the DefaultTimeout property, it affects only the SoapClient instances created after the property is set.
Setting the DefaultTimeout 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