Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

Sys.Services ProfileService timeout Property

Gets or sets the profile service time-out value.

note

To get or set property values for client API properties, you must call property accessor methods that are named with the get_ and set_ prefixes. For example, to get or set a value for a property such as cancel, you call the get_cancel or set_cancel methods.

Syntax

Sys.Services.ProfileService.set_timeout(value); 
var profTimeout = Sys.Services.ProfileService.get_timeout();

Parameter

Description

value

The time-out value in milliseconds.

Remarks

The timeout property represents the time in milliseconds that the current instance of the Sys.Net.WebRequestExecutor class should wait before timing out the request.

note

By setting a time-out interval, you can make sure that a pending request returns based on a time interval that you specify, instead of waiting for the asynchronous communication layer to time out.

Example

The following example shows how to use the timeout property. This code is part of a complete example found in the Sys.Services.ProfileService class overview.

javascript

// Get the profile service timeout
var timeout = Sys.Services.ProfileService.get_timeout();