Share via


IISPropertyAttribute Interface

The IISPropertyAttribute interface contains methods that can get and set the schema attributes and metadata attributes on a property in the IIS metabase. For information about what each attribute means, see Using the Metabase Reference Pages.

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 IISPropertyAttribute interface exposes the following methods.

Method

Description

get_PropName

Gets a BSTR containing the name of the IIS metabase property that the ADSI object currently references.

get_MetaId

Gets a long value that represents the IIS metabase property internally. This number is defined in the header file, and called the "Internal ID" in the IIS Metabase Properties reference topics.

put_MetaId

Sets the long value that represents the IIS metabase property internally. This method is for internal use.

get_UserType

Gets a long value that represents the type of IIS metabase property that the ADSI object is referencing. For example, ASP metabase properties have a user type of 101. This number is defined in the header file, and the matching string constant is called the "User Type" in the IIS Metabase Properties reference topics.

put_UserType

Sets the long value that represents the type of IIS metabase property that the ADSI object is referencing. This method is for internal use.

get_AllAttributes

Gets a long value that represents all of the metadata attributes set for the IIS metabase property that the ADSI object is referencing. This number indicates if any of the following are set.

  • INHERIT

  • REFERENCE

  • SECURE

  • NO_ATTRIBUTES

  • VOLATILE

get_Inherit

Gets a VARIANT_BOOL value that represents if the IIS metabase property and its corresponding value are inheritable by child nodes.

put_Inherit

Sets the VARIANT_BOOL value that represents if the IIS metabase property and its corresponding value are inheritable by child nodes. This method is for internal use.

get_Secure

Gets a VARIANT_BOOL value that represents if the IIS metabase property value is encrypted in the disk representation of the metabase for security reasons.

put_Secure

Sets the VARIANT_BOOL value that represents if the IIS metabase property value is encrypted in the disk representation of the metabase for security reasons. This method is for internal use.

get_Reference

Gets a VARIANT_BOOL value that represents if the IIS metabase property value is a structure. For example, the AdminACL metabase property is an access control list.

put_Reference

Sets the VARIANT_BOOL value that represents if the IIS metabase property value is a structure. This method is for internal use.

get_Volatile

Gets a VARIANT_BOOL value that represents if the IIS metabase property value changes frequently, and therefore, not inheritable. For example, the ServerState metabase property changes every time the IIS server is stopped or started.

put_Volatile

Sets the VARIANT_BOOL value that represents if the IIS metabase property value changes frequently, and therefore, not inheritable. This method is for internal use.

get_Isinherit

Gets a VARIANT_BOOL value that represents if the IIS metabase property and its corresponding value are inherited from a parent node.

get_Default

Gets a VARIANT value that represents what is the schema default of the IIS metabase property.

put_Default

Sets a VARIANT value that represents what is the schema default of the IIS metabase property. This method is for internal use.

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

IISBaseObject Interface

IISSchemaObject Interface

Using the Metabase Reference Pages