判斷是否已定義特定的自定義屬性。
語法
int IsCustomAttributeDefined(
[In] string pszCustomAttributeName
);
HRESULT IsCustomAttributeDefined(
LPCOLESTR pszCustomAttributeName
);
參數
pszCustomAttributeName
[in]字串,包含要尋找的自定義屬性名稱。
傳回值
如果這個方法上定義了自定義屬性,則傳回S_OK,否則會傳回S_FALSE。
另請參閱