共用方式為


IDebugCustomAttributeQuery2::EnumCustomAttributes

取得附加至此欄位之所有自訂屬性的列舉值。

語法

int EnumCustomAttributes(
   out IEnumDebugCustomAttributes ppEnum
);

參數

ppEnum
[out]會傳 回代表自定義屬性清單的 IEnumDebugCustomAttributes 物件;否則,如果沒有自定義屬性,則會傳回 Null 值。

傳回值

如果成功,如果此欄位上沒有自定義屬性,則傳回S_OK或S_FALSE。 否則,會傳回錯誤碼;

備註

欄位可以有多個自定義屬性。

另請參閱