Attributes by Usage
This topic lists attributes according to the C++ language elements to which they apply.
If an attribute precedes a Visual C++ element that is not in the attribute's scope, the attribute block is treated as a comment.
Attribute |
Description |
---|---|
Applies to the module attribute. |
|
Applies to the __interface C++ keyword. |
|
Applies to the C++ keyword. |
|
Applies to the methods in a class, coclass, or interface. |
|
Applies to parameters of a method in a class or interface. |
|
Applies to the data members in a class, coclass, or interface. |
|
Applies to the C++ keywords. |
|
Applies to arrays or SAFEARRAYs. |
|
Operates more like a line of code but does not operate on a C++ keyword. Stand-alone attribute statements require a semicolon at the end of the line. |
|
Allows the user to extend metadata. |