GUID_ManagedName Attribute

Defines a custom interface attribute that specifies the managed namespace name for a component object model (COM) library.

   custom(GUID_ManagedName, value)


The managed namespace name for the library.

GUID_ManagedName is defined in Cor.h as follows:

// {0F21F359-AB84-41e8-9A78-36D110E6D2F9}
EXTERN_GUID(GUID_ManagedName, 0xf21f359, 0xab84, 0x41e8, 0x9a, 0x78, 0x36, 0xd1, 0x10, 0xe6, 0xd2, 0xf9);

A custom interface attribute defines metadata for an object in the type library.

Use ITypeInfo2.GetCustData or ITypeLib2.GetCustData to retrieve the managed name from the attribute.

For more information, see Interface Attributes in the Visual C++ reference documentation.

The following example shows a library definition using the GUID_ManagedName attribute.

   custom(GUID_ManagedName, Microsoft.VisualStudio.CommandBars.dll")
library Microsoft_VisualStudio_CommandBars

Header: Cor.h

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft