Share via


FileExtensionElement Class [IIS 7]

Specifies a file extension that is allowed or denied in requests.

Syntax

class FileExtensionElement : CollectionElement

Methods

This class contains no methods.

Properties

Name

Description

Allowed

A read/write boolean value. true if files with the extension specified in FileExtension are allowed in requests; otherwise, false. The default is true.

FileExtension

A read-only string value that specifies a file extension that is allowed or denied in requests depending on the value in the Allowed property. The key property.

Subclasses

This class contains no subclasses.

Remarks

Instances of this class are contained in the FileExtensions array property of the FileExtensionsSettings class. In the ApplicationHost.config file, this class represents a <fileExtension> element under the <fileExtensions> section.

Note

You must install the Request Filtering Module (Modrqflt.dll) for this configuration setting to take effect.

Inheritance Hierarchy

CollectionElement

   FileExtensionElement

Requirements

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

See Also

Reference

CollectionElement Class [IIS 7 and higher]

FileExtensionsSettings Class [IIS 7 and higher]

RequestFilteringSection Class [IIS 7 and higher]