The requested page is not available for the requested platform. You are viewing the content for Default platform.

DocumentManager.HibernatedDocumentsDisposeTimeout Property

Gets or sets the timeout specifying how long hibernated documents are stored on the server before disposing. The default value is TimeSpan.FromHours(24).

Namespace: DevExpress.Web.Office

Assembly: DevExpress.Web.v19.2.dll


public static TimeSpan HibernatedDocumentsDisposeTimeout { get; set; }
Public Shared Property HibernatedDocumentsDisposeTimeout As TimeSpan

Property Value

Type Description

A TimeSpan object specifying the timeout.


To learn more, see the Document Hibernation.


The following code example demonstrates how hibernation settings can be defined in the Application_Start method. Some of the settings are optional.

<%@ Application Language="C#" %>
<%@ Import Namespace="DevExpress.Web.Office" %>
<script runat="server">
    void Application_Start(object sender, EventArgs e) {
        // Code that runs on application startup
        DocumentManager.HibernationStoragePath = Server.MapPath("~/App_Data/HibernationStorage/"); //Required setting
        DocumentManager.HibernateTimeout = TimeSpan.FromMinutes(30); //Optional setting
        DocumentManager.HibernatedDocumentsDisposeTimeout = TimeSpan.FromDays(1); //Optional setting
        DocumentManager.HibernateAllDocumentsOnApplicationEnd = true; //Optional setting
        DocumentManager.EnableHibernation = true; //Required setting to turn the hibernation on
See Also