共用方式為


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)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property BrowserFileHandling As SPBrowserFileHandling
    Get
    Set
'Usage
Dim instance As SPWebApplication
Dim value As SPBrowserFileHandling

value = instance.BrowserFileHandling

instance.BrowserFileHandling = value
public SPBrowserFileHandling BrowserFileHandling { get; set; }

Property Value

Type: Microsoft.SharePoint.SPBrowserFileHandling
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.

See Also

Reference

SPWebApplication Class

SPWebApplication Members

Microsoft.SharePoint.Administration Namespace