Export (0) Print
Expand All

WebClientProtocol.Timeout Property

Indicates the time an XML Web service client waits for a synchronous XML Web service request to complete (in milliseconds).

Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in system.web.services.dll)

public int Timeout { get; set; }
/** @property */
public int get_Timeout ()

/** @property */
public void set_Timeout (int value)

public function get Timeout () : int

public function set Timeout (value : int)

Not applicable.

Property Value

The time out, in milliseconds, for synchronous calls to the XML Web service. The default is 100000 milliseconds.

Setting the Timeout property to Timeout.Infinite indicates that the request does not time out. Even though an XML Web service client can set the Timeout property to not time out, the Web server can still cause the request to time out on the server side.

The following example sets the Timeout value to 15000 (15 seconds) for the synchronous call to the Add XML Web service method within the Math XML Web service.

math.Timeout = 15000;


math.timeout = 15000;

math.Timeout = 15000


Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft