FUNCKIND 列舉

定義

定義如何存取函式。Defines how to access a function.

public enum class FUNCKIND
[System.Serializable]
public enum FUNCKIND
type FUNCKIND = 
Public Enum FUNCKIND
繼承
FUNCKIND
屬性

欄位

FUNC_DISPATCH 4

函式只能透過 IDispatch 來存取。The function can be accessed only through IDispatch.

FUNC_NONVIRTUAL 2

此函式是透過 static 位址來存取,並接受隱含的 this 指標。The function is accessed by static address and takes an implicit this pointer.

FUNC_PUREVIRTUAL 1

函式透過虛擬函式表 (Virtual Function Table,VTBL) 來存取,並接受隱含 this 指標。The function is accessed through the virtual function table (VTBL), and takes an implicit this pointer.

FUNC_STATIC 3

此函式是透過 static 位址來存取,且不接受隱含的 this 指標。The function is accessed by static address and does not take an implicit this pointer.

FUNC_VIRTUAL 0

函式以與 FUNC_PUREVIRTUAL 相同的方式存取,但如果此函式具有實作 (Implementation) 則除外。The function is accessed in the same way as FUNC_PUREVIRTUAL, except the function has an implementation.

備註

如需 FUNCKIND的詳細資訊,請參閱 MSDN Library。For additional information about FUNCKIND, see the MSDN Library.

當原生程式碼中的 COM 方法傳回 HRESULT 時,common language runtime 會擲回例外狀況。The common language runtime throws an exception when a COM method in native code returns an HRESULT. 如需詳細資訊,請參閱 How to: Map HRESULTs and ExceptionsFor more information, see How to: Map HRESULTs and Exceptions.

適用於