SPWebApplication.BrowserFileHandling property

Gets or sets a value that controls how files are treated in the browser.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPBrowserFileHandling BrowserFileHandling { get; set; }

Property value

Type: Microsoft.SharePoint.SPBrowserFileHandling
A value that determines how files are treated in the browser. Strict specifies that MIME content types which are not listed in AllowedInlineDownloadedMimeTypes are forced to bedownloaded. Permissive specifies that the HTML and other content types which might contain script are allowed to be displayed directly in the browser.