Export (0) Print
Expand All

custom (C++)

Defines metadata for an object in the type library.

[ custom( 
   uuid,  
   value 
) ];

uuid

A unique ID.

value

A value that can be put into a variant.

The custom C++ attribute will cause information to be placed into the type library. You will need a tool that reads the custom value from type library.

The custom attribute has the same functionality as the custom MIDL attribute.

Attribute Context

Applies to

Non-COM interface, class, enums, idl_module methods, interface members, interface parameters, typedefs, unions, structs

Repeatable

Yes

Required attributes

coclass (when used on class)

Invalid attributes

None

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

Show:
© 2014 Microsoft