ScriptTimeout Property
Collapse the table of content
Expand the table of content

HttpServerUtility.ScriptTimeout Property

Gets and sets the request time-out in seconds.

[Visual Basic]
Public Property ScriptTimeout As Integer
[C#]
public int ScriptTimeout {get; set;}
[C++]
public: __property int get_ScriptTimeout();
public: __property void set_ScriptTimeout(int);
[JScript]
public function get ScriptTimeout() : int;
public function set ScriptTimeout(int);

Property Value

The time-out setting for requests.

Exceptions

Exception Type Condition
HttpException The time-out period is a null reference (Nothing in Visual Basic) or otherwise could not be set.

Example

The following example sets the request time-out period to 60 seconds.

[Visual Basic] 
Server.ScriptTimeout = 60
   

[C#] 
Server.ScriptTimeout = 60;
   

[C++] 
Server->ScriptTimeout = 60;
   

[JScript] 
Server.ScriptTimeout = 60
   

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpServerUtility Class | HttpServerUtility Members | System.Web Namespace

Show:
© 2016 Microsoft