dispinterface
Places an interface in the .idl file as a dispatch interface.
Syntax
[dispinterface]
Remarks
When the dispinterface C++ attribute precedes an interface, it causes the interface to be placed inside the library block in the generated .idl file.
Unless you specify a base class, a dispatch interface will derive from IDispatch
. You must specify an id for the members of a dispatch interface.
The usage example for dispinterface in the MIDL documentation:
dispinterface helloPro
{ interface hello; };
is not valid for the dispinterface attribute.
Example
See the example for bindable for an example of how to use dispinterface.
Requirements
Attribute context | Value |
---|---|
Applies to | interface |
Repeatable | No |
Required attributes | None |
Invalid attributes | dual , object , oleautomation , local , ms_union |
For more information, see Attribute Contexts.
See also
IDL Attributes
Attributes by Usage
uuid
dual
custom
object
__interface
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru