分享方式:


nonbrowsable

表示介面成員不應該顯示在屬性瀏覽器中。

語法

[nonbrowsable]

備註

不可流覽C++屬性的功能與不可流覽的 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();
};

需求

屬性內容
適用於 介面方法
可重複 No
必要屬性
無效屬性

如需有關屬性內容的詳細資訊,請參閱 屬性內容

另請參閱

IDL 屬性
方法屬性