共用方式為


oleautomation

Indicates that an interface is compatible with Automation.

[oleautomation]

Remarks

The oleautomation C++ attribute has the same functionality as the oleautomation MIDL attribute.

Example

See the examples for defaultvalue and nonextensible for a sample use of oleautomation.

Requirements

Attribute Context

Applies to

interface

Repeatable

No

Required attributes

None

Invalid attributes

dispinterface

For more information about the attribute contexts, see Attribute Contexts.

See Also

Other Resources

IDL Attributes

Interface Attributes

Attributes Samples