noncreatable

Description

Indicates that the class does not support creation at the top level (for example, through ITypeInfo::CreateInstance or CoCreateInstance). An object of such a class is usually obtained through a method call on another object.

Allowed on

Coclass.

Example

[
    uuid(1e196b20-1fc3-1069-996b-00dd010ef671),
    helpstring("This is Dynaset"),
   noncreatable
]
coclass Dynaset
{
    [default] interface IDynaset;
    [default, source] interface IDynasetEvents;
}

Flags

TYPEFLAG_FCANCREATE