COM Attributes

The COM attributes inject code to support numerous areas of COM development and .NET Framework common language runtime development. These areas range from custom interface implementation and support of existing interfaces to supporting stock properties, methods, and events. In addition, support can be found for composite and ActiveX control implementation.

Attribute

Description

aggregatable

Indicates that a control can be aggregated by another control.

aggregates

Indicates that a control aggregates the target class.

coclass

Creates a COM object, which can implement a COM interface.

com_interface_entry

Adds an interface entry to a COM map.

implements_category

Specifies implemented component categories for the class.

perf_counter

Adds performance monitor counter support to a class member variable.

perfmon

Adds performance monitor support to a class.

progid

Defines the ProgID for a control.

rdx

Creates or modifies a registry key.

registration_script

Executes the specified registration script.

requires_category

Specifies required component categories for the class.

support_error_info

Supports error reporting for the target object.

synchronize

Synchronizes access to a method.

tag_name

In a request handler, exposes it as a replacement method associated with a tag name.

threading

Specifies the threading model for a COM object.

vi_progid

Defines a version-independent ProgID for a control.

See Also

Concepts

Attributes by Group