The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

Indicates that an interface is compatible with Automation.


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

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

Attribute Context

Applies tointerface
Required attributesNone
Invalid attributesdispinterface

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

IDL Attributes
Interface Attributes
Attributes Samples