ref (C++)
識別參考指標。
語法
[ref]
備註
ref C++ 屬性的功能與 ref MIDL 屬性相同。
範例
下列程式代碼示範如何使用 ref 屬性:
// cpp_attr_ref_ref.cpp
// compile with: /LD
#include <windows.h>
[module(name="ATLFIRELib")];
[dispinterface, uuid("00000000-0000-0000-0000-000000000001")]
__interface IFireTabCtrl
{
[id(1), unique] char * GetFirstName([in, ref] char * pszFullName );
};
需求
屬性內容 | 值 |
---|---|
適用於 | typedef 、介面參數、介面方法 |
可重複 | No |
必要屬性 | 無 |
無效屬性 | 無 |
如需有關屬性內容的詳細資訊,請參閱 屬性內容。