次の方法で共有


IDebugProperty2::GetParent

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

Gets the parent property of a property.

Syntax

HRESULT GetParent ( 
   IDebugProperty2** ppParent
);
int GetParent ( 
   out IDebugProperty2 ppParent
);

Parameters

ppParent
[out] Returns an IDebugProperty2 object that represents the parent of the property.

Return Value

If successful, returns S_OK; otherwise returns error code. Returns S_GETPARENT_NO_PARENT if there is no parent.

See also