Share via


DataServiceContext.Timeout Property

Gets or sets the time-out option (in seconds) that is used for the underlying HTTP request to the data service.

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

Syntax

'Declaration
Public Property Timeout As Integer 
    Get 
    Set
'Usage
Dim instance As DataServiceContext 
Dim value As Integer 

value = instance.Timeout

instance.Timeout = value
public int Timeout { get; set; }
public:
property int Timeout {
    int get ();
    void set (int value);
}
member Timeout : int with get, set
function get Timeout () : int 
function set Timeout (value : int)

Property Value

Type: System.Int32
An integer that indicates the time interval (in seconds) before time-out of a service request.

Remarks

This value is converted from seconds and passed to the Timeout property of the underlying HttpWebRequest object. The value must be set before executing any query or update operations against the target data service can affect the request. The value may be changed between requests to a data service and the new value will be picked up by the next data service request.

See Also

Reference

DataServiceContext Class

System.Data.Services.Client Namespace