次の方法で共有


IISIPSecurity Interface

The IISIPSecurity interface contains methods that can get and set IP security configuration settings that grant or deny access by specific IP addresses or domains. This interface allows you to create a special purpose object in ADSI that can configure the IPSecurity metabase property in IIS.

This interface can be used from a C++ or Visual Basic application that uses ADSI. The required header file, IIIS.h, is installed with Visual Studio and the IIS Software Developer Kit. Visual Basic developers can treat these methods as properties if they remove the "get_" and "set_" from the member name.

For a C++ code example that uses ADSI to configure the metabase, see Using ADSI to Configure IIS in a C++ Application.

Methods in Vtable Order

The IISIPSecurity interface exposes the following methods.

Method

Description

get_IPDeny

Gets a VARIANT array of IP addresses that are not permitted to view the IIS site, service, virtual directory, or file. This is only effective if permission is granted by default.

put_IPDeny

Sets the VARIANT array of IP addresses that are not permitted to view the IIS site, service, virtual directory, or file. This is only effective if permission is granted by default.

get_IPGrant

Gets a VARIANT array of IP addresses that are permitted to view the IIS site, service, virtual directory, or file. This is only effective if permission is denied by default.

put_IPGrant

Sets the VARIANT array of IP addresses that are permitted to view the IIS site, service, virtual directory, or file. This is only effective if permission is denied by default.

get_DomainDeny

Gets a VARIANT array of domains that are not permitted to view the IIS site, service, virtual directory, or file. This is only effective if permission is granted by default.

put_DomainDeny

Sets the VARIANT array of domains that are not permitted to view the IIS site, service, virtual directory, or file. This is only effective if permission is granted by default.

get_DomainGrant

Gets a VARIANT array of domains that are permitted to view the IIS site, service, virtual directory, or file. This is only effective if permission is denied by default.

put_DomainGrant

Sets the VARIANT array of domains that are permitted to view the IIS site, service, virtual directory, or file. This is only effective if permission is denied by default.

get_GrantByDefault

Gets the VARIANT_BOOL value that indicates if access to an IIS resource is granted to all IP addresses and domains by default. To specify exceptions, use the other methods in this interface.

put_GrantByDefault

Sets the VARIANT_BOOL value that indicates if access to an IIS resource is granted to all IP addresses and domains by default. To specify exceptions, use the other methods in this interface.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

Header: Declared in iiis.h.

See Also

Concepts

IIS ADSI Provider Interfaces

Using ADSI to Configure IIS in a C++ Application

IIS Constants and Header Files