設定對指定函式的呼叫。
這種方法已經過時了。 請改用 ICorDebugEval2::CallParameterizedFunction 。
語法
HRESULT CallFunction (
[in] ICorDebugFunction *pFunction,
[in] ULONG32 nArgs,
[in, size_is(nArgs)] ICorDebugValue *ppArgs[]
);
參數
pFunction
[在]指定要呼叫之函式的 ICorDebugFunction 物件指標。
nArgs
[在]函數的引數數目。
ppArgs
[在]指標陣列,每個指標都指向 ICorDebugValue 物件,以指定要傳遞至函式的引數。
備註
如果功能是虛擬的, CallFunction 則會執行虛擬調度。 如果函式位於不同的應用程式網域中,只要所有引數也在該應用程式網域中,就會發生轉換。
需求
平台: 請參閱 .NET 支援的作業系統。
標題: CorDebug.idl、CorDebug.h
圖書館: CorGuids.lib
.NET 版本: 1.1、1.0