IPAddressFilterElement Class

Allows or denies access to content based on a unique combination of the IP address, subnet mask, and domain name.

Syntax

class IPAddressFilterElement : CollectionElement  

Methods

This class contains no methods.

Properties

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

Name Description
Allowed A read/write boolean value. true if access is granted to the location specified by the combination of the IPAddress, DomainName, and SubnetMask properties; otherwise; false. The default is false.
DomainName A required unique read/write string value that specifies a domain name (for example, "www.contoso.com") or a wildcard domain name (for example, "*.contoso.com") to which access is granted or denied. A key property.
IpAddress A required unique read/write string value that specifies an IP address to which access is granted or denied. A key property.
SubnetMask A required unique read/write string value that corresponds to a subnet mask to which access is granted or denied. The default is 255.255.255.255. You can use this property in conjunction with the IpAddress property to specify a range of IP addresses. A key property.

Subclasses

This class contains no subclasses.

Remarks

Instances of this class are contained in the IpSecurity property of the IPSecuritySection class.

Inheritance Hierarchy

CollectionElement

IPAddressFilterElement

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

CollectionElement Class
IPSecuritySection Class