VARKIND 枚举

定义

定义变量的种类。Defines the kind of variable.

public enum class VARKIND
[System.Serializable]
public enum VARKIND
type VARKIND = 
Public Enum VARKIND
继承
属性

字段

VAR_CONST 2

VARDESC 结构描述符号常量。The VARDESC structure describes a symbolic constant. 没有与之关联的内存。There is no memory associated with it.

VAR_DISPATCH 3

该变量只能通过 IDispatch::Invoke 访问。The variable can be accessed only through IDispatch::Invoke.

VAR_PERINSTANCE 0

该变量是类型的一个字段或成员。The variable is a field or member of the type. 它在类型的每个实例中存在于固定的偏移量处。It exists at a fixed offset within each instance of the type.

VAR_STATIC 1

该变量只有一个实例。There is only one instance of the variable.

注解

有关的其他信息VARKIND, 请参阅 MSDN library。For additional information about VARKIND, 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.

适用于