ComInterfaceType 列舉

定義

識別如何將介面公開至 COM。Identifies how to expose an interface to COM.

public enum class ComInterfaceType
public enum ComInterfaceType
[System.Serializable]
public enum ComInterfaceType
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public enum ComInterfaceType
type ComInterfaceType = 
[<System.Serializable>]
type ComInterfaceType = 
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type ComInterfaceType = 
Public Enum ComInterfaceType
繼承
ComInterfaceType
屬性

欄位

InterfaceIsDual 0

指出介面向 COM 公開為雙重介面,可使用早期繫結和晚期繫結。Indicates that the interface is exposed to COM as a dual interface, which enables both early and late binding. InterfaceIsDual 為預設值。InterfaceIsDual is the default value.

InterfaceIsIDispatch 2

指出介面向 COM 公開為 dispinterface,僅可使用晚期繫結。Indicates that an interface is exposed to COM as a dispinterface, which enables late binding only.

InterfaceIsIInspectable 3

表示介面會公開至 COM 做為 Windows 執行階段介面。Indicates that an interface is exposed to COM as a Windows Runtime interface.

InterfaceIsIUnknown 1

指出介面向 COM 公開為自 IUnknown 衍生的介面,僅可使用早期繫結。Indicates that an interface is exposed to COM as an interface that is derived from IUnknown, which enables only early binding.

備註

此列舉與屬性搭配使用 InterfaceTypeAttributeThis enumeration works in conjunction with the InterfaceTypeAttribute attribute.

適用於