ICorDebugVariableHome:: GetSlotIndex 方法ICorDebugVariableHome::GetSlotIndex Method

取得本機變數的 managed 位置索引。Gets the managed slot-index of a local variable.

語法Syntax

HRESULT GetSlotIndex(  
    [out] ULONG32 *pSlotIndex  
);  

參數Parameters

pSlotIndex
擴展區域變數之位置索引的指標。[out] A pointer to the slot-index of a local variable.

傳回值Return Value

方法會傳回下列值。The method returns the following values.

Value 描述Description
S_OK 方法呼叫傳回中的位置索引值 pSlotIndexThe method call returned a slot-index value in pSlotIndex.
E_FAIL 目前的 ICorDebugVariableHome 實例表示函式引數。The current ICorDebugVariableHome instance represents a function argument.

備註Remarks

位置索引可以用來取得此區域變數的中繼資料。The slot-index can be used to retrieve the metadata for this local variable.

需求Requirements

平台: 請參閱 系統需求Platforms: See System Requirements.

標頭: CorDebug.idl、CorDebug.hHeader: CorDebug.idl, CorDebug.h

程式庫: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 4.6.2 起可用Available since 4.6.2.NET Framework Versions: 自 4.6.2 起可用Available since 4.6.2

另請參閱See also