GUID_ManagedName Attribute
Defines a custom interface attribute that specifies the managed namespace name for a component object model (COM) library.
Syntax
[
custom(GUID_ManagedName, value)
]
Parameters
value
The managed namespace name for the library.
Definition
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);
Remarks
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.
Example
The following example shows a library definition using the GUID_ManagedName
attribute.
[
...
custom(GUID_ManagedName, Microsoft.VisualStudio.CommandBars.dll")
]
library Microsoft_VisualStudio_CommandBars
{
...
}
Requirements
Header: Cor.h
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for