共用方式為


SPWebApplication.BlockedFileExtensions Property

Gets the list of file extensions that cannot be uploaded or downloaded from sites in the Web application.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Property BlockedFileExtensions As Collection(Of String)
    Get
'Usage
Dim instance As SPWebApplication
Dim value As Collection(Of String)

value = instance.BlockedFileExtensions
public Collection<string> BlockedFileExtensions { get; }

Property Value

Type: System.Collections.ObjectModel.Collection<String>
A System.Collections.ObjectModel.Collection object that represents the file extensions that cannot be uploaded or downloaded.

See Also

Reference

SPWebApplication Class

SPWebApplication Members

Microsoft.SharePoint.Administration Namespace