ComInterfaceType ComInterfaceType ComInterfaceType ComInterfaceType Enum

Definition

Identifies how to expose an interface to COM.

public enum class ComInterfaceType
[System.Runtime.InteropServices.ComVisible(true)]
public enum ComInterfaceType
type ComInterfaceType = 
Public Enum ComInterfaceType
Inheritance
ComInterfaceTypeComInterfaceTypeComInterfaceTypeComInterfaceType
Attributes

Fields

InterfaceIsDual InterfaceIsDual InterfaceIsDual InterfaceIsDual 0

Indicates that the interface is exposed to COM as a dual interface, which enables both early and late binding. InterfaceIsDual is the default value.

InterfaceIsIDispatch InterfaceIsIDispatch InterfaceIsIDispatch InterfaceIsIDispatch 2

Indicates that an interface is exposed to COM as a dispinterface, which enables late binding only.

InterfaceIsIInspectable InterfaceIsIInspectable InterfaceIsIInspectable InterfaceIsIInspectable 3

Indicates that an interface is exposed to COM as a Windows Runtime interface.

InterfaceIsIUnknown InterfaceIsIUnknown InterfaceIsIUnknown InterfaceIsIUnknown 1

Indicates that an interface is exposed to COM as an interface that is derived from IUnknown, which enables only early binding.

Remarks

This enumeration works in conjunction with the InterfaceTypeAttribute attribute.

Applies to