Share via


Sys.Services AuthenticationService timeout Property

Gets or sets the authentication 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.

Sys.Services.AuthenticationService.set_timeout(value); 
var authTimeout = Sys.Services.AuthenticationService.get_timeout();

Parameters

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 programmatically. This code is part of a complete example found in the Sys.Services.AuthenticationService class overview.

var authServiceTimeout =       
    Sys.Services.AuthenticationService.get_timeout();

See Also

Concepts

Sys.Services.ProfileService Class

Sys.Net.WebServiceProxy Class