Documentation > CMS Template API Library > Util > SetRenderTimeout(Int32)

SetRenderTimeout

Modifies the default value of the Render timeout. Normally used to give long running template more time to execute, or to make sure templates don't take over x # of seconds to execute. Should be used at top of template code. Cannot be set to the maximum set by the CMS, currently 900 seconds.

public System.Void SetRenderTimeout(Int32)

Parameters

NameDescriptionType
newTimeoutInSeconds The new timeout value. System.Int32

Code Example

C#

Sample:
    
            Util.SetRenderTimeout(100);
            

Connect with Crownpeak