次の方法で共有


IDebugSymbolProvider::GetNamespacesUsedAtAddress

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

This method creates an enumerator for namespaces associated with the debug address.

Syntax

HRESULT GetNamespacesUsedAtAddress( 
   IDebugAddress*     pAddress,
   IEnumDebugFields** ppEnum
);
int GetNamespacesUsedAtAddress(
   IDebugAddress        pAddress,
   out IEnumDebugFields ppEnum
);

Parameters

pAddress
[in] The debug address.

ppEnum
[out] Returns an IEnumDebugFields enumerator for the namespaces.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

There may be several namespaces associated with a given debug address, for example, nested namespaces or multiple using statements.

See also