VARKIND 列舉

定義

定義變數的類型。Defines the kind of variable.

public enum class VARKIND
public enum 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 時,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.

適用於