次の方法で共有


DoDynamicCompression

The DoDynamicCompression property performs the same function as the global HcDoDynamicCompression property, but is used for enabling or disabling static content compression at the individual site or site element level.

Before you can use DoDynamicCompression to customize compression at the site or site element level, at least one compression scheme (gzip or deflate) must be enabled in the HcDoDynamicCompression property at the IIS Admin Object Hierarchy level. This setting determines which compression schemes IIS will support for dynamic content; gzip, deflate, or both.

You can either enable compression of dynamic content server-wide, and then disable it at specific locations as needed, or, you can disable compression of dynamic content server-wide, and then enable it only at the locations you specify. For more information on these 2 approaches, see HcDoDynamicCompression.

Schema Attributes

Attribute Name

Value

ADSI/WMI Data Type

BOOL

ABO Data Type

DWORD_METADATA

Schema Default

FALSE

Internal Default

Not specified.

Upper Bound

0

Lower Bound

Not specified

Internal ID

2255

Friendly ID

MD_HC_DO_NAMESPACE_DYNAMIC_COMPRESSION

Property Attributes

INHERIT

User Type

IIS_MD_UT_FILE

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

Metabase Path

IIS Admin Object Type

/LM/W3SVC

IIsWebService

/LM/W3SVC/n

IIsWebServer

/LM/W3SVC/n/ROOT/file_name

/LM/W3SVC/n/ROOT/virtual_directory_name/file_name

IIsWebFile

/LM/W3SVC/n/ROOT/physical_directory_name

/LM/W3SVC/n/virtual_directory_name/physical_directory_name

IIsWebDirectory

/LM/W3SVC/n/ROOT

/LM/W3SVC/n/ROOT/virtual_directory_name

IIsWebVirtualDir

Flags

There are no flags for this property.

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

See Also