Share via


IDebugObject2::GetBackingFieldForProperty

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 field or variable (if any) that may be backing the property represented by this object.

Syntax

HRESULT GetBackingFieldForProperty(
   IDebugObject2** ppObject
);
int GetBackingFieldForProperty(
   out IDebugObject2 ppObject
);

Parameters

ppObject
[out] An IDebugObject2 object describing the backing field.

Return Value

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

Remarks

The IDebugObject2 object represents a managed code class property, that is, a method with a get and/or set accessor. Such properties generally require a variable to contain the value manipulated by the property. This variable is known as the backing field. If there is no backing field for the object, then make sure to return a null value: some callers may not pay attention to the return value but will instead look to see if a null value was returned in ppObject.

See also