GetValue メソッドは、VARIANT にパックされた定数の値を返します。
IDebugHostSymbol の GetType メソッドは、定数の特定の型シンボルを返す可能性があることに注意してください。 このような場合、型シンボルで定義されている定数値のパッキングが、ここで GetValue メソッドによって返されるパッキングと同じであるという保証はありません。
構文
HRESULT GetValue(
VARIANT *value
);
パラメーター
value
VARIANT にパックされたデータの値がここで返されます。
戻り値
このメソッドは、成功または失敗を示す HRESULT を返します。
備考
サンプル コード の
ComPtr<IDebugHostConstant> spConstant; /* get a constant */
VARIANT vtValue;
if (SUCCEEDED(spConstant->GetValue(&vtValue)))
{
// vtValue contains the value of the constant. The variant type of vtValue
// may not match what the type indicates if you get the type of the symbol.
VariantClear(&vtValue);
}
必要条件
要件 | 価値 |
---|---|
ヘッダー | dbgmodel.h |
関連項目
IDebugHostConstant インターフェイス の