IDebugCustomAttributeQuery2:: IsCustomAttributeDefined

确定自定义特性名称是否存在。

HRESULT IsCustomAttributeDefined( 
   LPCOLESTR pszCustomAttributeName
);
int IsCustomAttributeDefined(
   [In] string pszCustomAttributeName
);

参数

  • pszCustomAttributeName
    [in] 包含自定义特性的名称的字符串外观。

返回值

返回 S_OK,如果自定义特性此字段定义; 否则返回 S_FALSE。

备注

若要获取属性字节与自定义特性,请调用 IDebugCustomAttributeQuery2:: GetCustomAttributeByName 方法。

请参见

参考

IDebugCustomAttributeQuery2