共用方式為


IIsIPSecuritySetting (WMI)

This class corresponds to the IIsIPSecurity IIS Admin object. You can use this class to set access permissions by IP address and domain address.

IIsSetting (WMI)

Methods

The IIsIPSecuritySetting object has no methods.

Properties

The IIsIPSecuritySetting object defines the following properties, in addition to those inherited from IIsSetting (WMI).

Property

Data type

Description

DomainDeny[]

array of String

The DomainDeny property contains an array of domains that are denied access. DomainDeny is only valid if GrantByDefault is set to true.

DomainGrant[]

array of String

The DomainGrant property contains an array of domains that are granted access. DomainGrant is only valid if GrantByDefault is set to false.

GrantByDefault

Boolean

The GrantByDefault property determines if access by users is granted or denied by default. If GrantByDefault is set to true, all IP addresses and Internet domains are granted access, except those you specify to be denied. Use IPDeny and DomainDeny to deny access to specific IP addresses and domains. If GrantByDefault is set to false, all IP addresses and domains are denied access by default, except those you specify to be granted access. Use IPGrant and DomainGrant to grant access to specific IP addresses and domains.

IPDeny[]

array of String

The IPDeny property contains an array of IP addresses that are denied access. IPDeny is only valid if GrantByDefault is set to true.

IPGrant[]

array of String

The IPGrant property contains an array of IP addresses that are denied access. IPGrant is only valid if GrantByDefault is set to false.

Name

String

The Name property defines the label by which the object is known. When subclassed, the Name property can be overridden to be a Key property.

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

See Also