Share via


ClientRuntimeContext.RequestTimeout property

Gets or sets the requested time-out value in milliseconds.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client.Runtime (in Microsoft.SharePoint.Client.Runtime.dll)

Syntax

'Declaration
Public Property RequestTimeout As Integer
    Get
    Set
'Usage
Dim instance As ClientRuntimeContext
Dim value As Integer

value = instance.RequestTimeout

instance.RequestTimeout = value
public int RequestTimeout { get; set; }

Property value

Type: System.Int32
The requested time-out value in milliseconds.

Remarks

With a .NET managed application client, the time-out is applied to the HttpWebRequest class that is used to send request to the server. In the Silverlight Library, because the HttpWebRequest class does not support time-out, it is only used when the ExecuteQueryAsync method is called. A value of Timeout.Infinite implies that there is no time-out.

See also

Reference

ClientRuntimeContext class

ClientRuntimeContext members

Microsoft.SharePoint.Client namespace