FileExtensionsSettings Class

Configures the filtering of file extensions in requests.

Syntax

class FileExtensionsSettings : EmbeddedObject  

Methods

This class contains no methods.

Properties

The following table lists the properties exposed by the FileExtensionsSettings class.

Name Description
AllowUnlisted A read/write boolean value. true if file extensions not listed in the FileExtensions property are allowed in requests; otherwise, false. The default is true.
ApplyToWebDAV A read/write boolean value. true if the AllowUnlisted and FileExtensions properties are applied to WebDAV requests; otherwise, false. The default is true.
FileExtensions An array of read/write FileExtensionElement values that specifies file extensions that are allowed or denied.

Subclasses

This class contains no subclasses.

Remarks

Instances of this class are contained in the FileExtensions property of the RequestFilteringSection class. In the ApplicationHost.config file, this class represents the <fileExtensions> element of the <requestFiltering> section

Inheritance Hierarchy

EmbeddedObject

FileExtensionsSettings

Requirements

Type Description
Client - IIS 7.0 on Windows Vista
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server - IIS 7.0 on Windows Server 2008
- IIS 7.5 on Windows Server 2008 R2
- IIS 8.0 on Windows Server 2012
- IIS 8.5 on Windows Server 2012 R2
- IIS 10.0 on Windows Server 2016
Product - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
MOF file WebAdministration.mof

See Also

EmbeddedObject Class
FileExtensionElement Class
RequestFilteringSection Class