Share via


nonbrowsable

指示不应在属性浏览器中显示接口成员。

语法

[nonbrowsable]

备注

nonbrowsable C++ 特性具有与 nonbrowsable MIDL 特性相同的功能

示例

// cpp_attr_ref_nonbrowsable.cpp
// compile with: /LD
#include <unknwn.h>
[module(name="MyLib")];

[object, helpstring("help string"), helpstringcontext(1),
uuid="11111111-1111-1111-1111-111111111111"]
__interface IMyI
{
   [nonbrowsable] HRESULT xx();
};

要求

特性上下文
适用于 接口方法
可重复
必需的特性
无效的特性

有关特性上下文的详细信息,请参见 特性上下文

另请参阅

IDL 特性
方法特性