IDebugHostField::GetLocation メソッド (dbgmodel.h)

特定の型インスタンスに関係なくアドレスを持つフィールド (場所の種類が LocationStatic を示すフィールドなど) の場合、GetLocation メソッドはフィールドの抽象場所 (住所) を返します。

指定されたフィールドに静的な場所がない場合、GetLocation メソッドは失敗します。

構文

HRESULT GetLocation(
  Location *location
);

パラメーター

location

フィールドの抽象的な場所 (住所など) がここで返されます。

戻り値

このメソッドは、成功または失敗を示す HRESULT を返します。

注釈

サンプル コード*

ComPtr<IDebugHostField> spField; /* get a field symbol (see EnumerateChildren) */

Location fieldLocation;
if (SUCCEEDED(spField->GetLocation(&fieldLocation)))
{
    // For fields which have a static location as determined by GetLocationKind, 
    // the location of the field will be in fieldLocation.
}

要件

要件
Header dbgmodel.h

こちらもご覧ください

IDebugHostField インターフェイス