Sys.Services ProfileService timeout Property

Gets or sets the profile service time-out value.

Note 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.

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




The time-out value in milliseconds.

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 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.

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.

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