Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

TYPEFLAGS Enumeration

Defines the properties and attributes of a type description.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.Runtime.InteropServices.ComTypes
Assemblies:   System.Runtime.InteropServices (in System.Runtime.InteropServices.dll)
  mscorlib (in mscorlib.dll)

public enum TYPEFLAGS

Member nameDescription
Supported by Portable Class LibraryTYPEFLAG_FAGGREGATABLEThe class supports aggregation.
Supported by Portable Class LibraryTYPEFLAG_FAPPOBJECTA type description that describes an Application object.
Supported by Portable Class LibraryTYPEFLAG_FCANCREATEInstances of the type can be created by ITypeInfo::CreateInstance.
Supported by Portable Class LibraryTYPEFLAG_FCONTROLThe type is a control from which other types will be derived and should not be displayed to users.
Supported by Portable Class LibraryTYPEFLAG_FDISPATCHABLEIndicates that the interface derives from IDispatch, either directly or indirectly. This flag is computed; there is no Object Description Language for the flag.
Supported by Portable Class LibraryTYPEFLAG_FDUALThe interface supplies both IDispatch and VTBL binding.
Supported by Portable Class LibraryTYPEFLAG_FHIDDENThe type should not be displayed to browsers.
Supported by Portable Class LibraryTYPEFLAG_FLICENSEDThe type is licensed.
Supported by Portable Class LibraryTYPEFLAG_FNONEXTENSIBLEThe interface cannot add members at run time.
Supported by Portable Class LibraryTYPEFLAG_FOLEAUTOMATIONThe types used in the interface are fully compatible with Automation, including VTBL binding support. Setting dual on an interface sets both this flag and the TYPEFLAG_FDUAL. This flag is not allowed on dispinterfaces.
Supported by Portable Class LibraryTYPEFLAG_FPREDECLIDThe type is predefined. The client application should automatically create a single instance of the object that has this attribute. The name of the variable that points to the object is the same as the class name of the object.
Supported by Portable Class LibraryTYPEFLAG_FPROXYIndicates that the interface will be using a proxy/stub dynamic link library. This flag specifies that the type library proxy should not be unregistered when the type library is unregistered.
Supported by Portable Class LibraryTYPEFLAG_FREPLACEABLEThe object supports IConnectionPointWithDefault, and has default behaviors.
Supported by Portable Class LibraryTYPEFLAG_FRESTRICTEDShould not be accessible from macro languages. This flag is intended for system-level types or types that type browsers should not display.
Supported by Portable Class LibraryTYPEFLAG_FREVERSEBINDIndicates base interfaces should be checked for name resolution before checking children, which is the reverse of the default behavior.

For additional information about TYPEFLAGS, see the MSDN Library.

The common language runtime throws an exception when a COM method in native code returns an HRESULT. For more information, see How to: Map HRESULTs and Exceptions.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Portable Class Library

Supported in: Portable Class Library
© 2015 Microsoft