ポインターである型の場合、GetPointerKind メソッドはポインターの種類を返します。 これは PointerKind 列挙によって定義され、次のいずれかの値です。
| Enumerant | 意味 |
|---|---|
| PointerStandard | 標準の C/C++ ポインターを示します-- a * |
| PointerReference | C/C++ 参照 (const かどうか) を示します-- & |
| PointerRValueReference | C/C++ の右辺値参照 (const かどうか) を示します-- && |
| PointerCXHat | C++/CX hat マネージド ポインター (const かどうか) を示します-- a ^ |
構文
HRESULT GetPointerKind(
PointerKind *pointerKind
);
パラメーター
pointerKind
ポインターの種類は、PointerKind 列挙型の値としてここで返されます。
戻り値
このメソッドは、成功または失敗を示す HRESULT を返します。
備考
サンプル コード の
ComPtr<IDebugHostType> spType; /* get a type for something that's a pointer
or reference (see FindTypeByName) */
PointerKind pk;
if (SUCCEEDED(spType->GetPointerKind(&pk)))
{
// pk indicates the kind of pointer:
// PointerStandard (it's a '*')
// PointerReference (it's a '&')
// etc...
}
必要条件
| 要件 | 価値 |
|---|---|
| ヘッダー | dbgmodel.h |
関連項目
IDebugHostType3 インターフェイス の