Partager via


IDebugCustomAttribute::GetParentField

Gets the field to which the custom attribute is attached.

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 IDebugField::GetKind method on the returned IDebugField object to determine what kind of field the parent is.

See Also

Reference

IDebugCustomAttribute

IDebugField