WebClientProtocol.Timeout Property

Definition

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

public:
 property int Timeout { int get(); void set(int value); };
public int Timeout { get; set; }
[System.ComponentModel.SettingsBindable(true)]
public int Timeout { get; set; }
member this.Timeout : int with get, set
[<System.ComponentModel.SettingsBindable(true)>]
member this.Timeout : int with get, set
Public Property Timeout As Integer

Property Value

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

Attributes

Examples

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

Remarks

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.

Applies to

See also