Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
Identifies a custom interface.
Syntax
[object]
Remarks
When preceding an interface definition, the object C++ attribute causes the interface to be placed in the .idl file as a custom interface.
Any interface marked with object must inherit from IUnknown. This condition is satisfied if any of the base interfaces inherit from IUnknown. If no base interfaces inherit from IUnknown, the compiler will cause the interface marked with object to derive from IUnknown.
Example
See nonbrowsable for an example of how to use object.
Requirements
| Attribute context | Value |
|---|---|
| Applies to | interface |
| Repeatable | No |
| Required attributes | None |
| Invalid attributes | None |
For more information about the attribute contexts, see Attribute Contexts.
See also
IDL Attributes
Interface Attributes
dual
dispinterface
custom
__interface