IDebugCustomAttribute::GetParentField

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 to which the custom attribute is attached.

Syntax

HRESULT GetParentField( 
   IDebugField** ppField
);
int GetParentField(
   out IDebugField ppField
);

Parameters

ppField
[out] Returns the IDebugField object that represents the field to which the custom attribute is attached.

Return Value

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

Remarks

Call the GetKind method on the returned IDebugField object to determine what kind of field the parent is.

See also