Share via


IDebugObject::SetReferenceValue

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

Sets the reference value of this object.

Syntax

HRESULT SetReferenceValue( 
   IDebugObject* pObject
);
int SetReferenceValue(
   [In] IDebugObject pObject
);

Parameters

pObject
[in] An IDebugObject object representing the new reference value.

Return Value

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

Remarks

This method makes this IDebugObject object a reference to the value of the object given in the pObject parameter, throwing away any previous reference. Note that this IDebugObject object must already be a reference type.

See also