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

该函数通过虚函数表 (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 的访问方式相同,不同之处在于该函数具有实现。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 时, 公共语言运行时将引发异常。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.

适用于