共用方式為


IDebugField::GetContainer

This method gets the container of a field.

HRESULT GetContainer( 
   IDebugContainerField** ppContainerField
);
int GetContainer(
   out IDebugContainerField ppContainerField
);

Parameters

  • ppContainerField
    [out] Returns the container as represented by the IDebugContainerField interface.

Return Value

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

Remarks

If this field does not have a container, the returned ppContainerField will be a null value.

See Also

Reference

IDebugField

IDebugContainerField