DataServiceContext.Timeout Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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

public int Timeout { get; set; }

Property Value

Type: System.Int32

An integer that indicates the time interval before time-out of a service request.

This value is passed to the T:System.Net.HttpWebRequest.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.

.NET Framework
Available since 3.5
Return to top