分享方式:


async_uuid

指定 UUID,指示 MIDL 編譯器同時定義 COM 介面的同步和非同步版本。

語法

[async_uuid (uuid)]

參數

uuid
識別介面版本的 UUID。

備註

async_uuid C++ 屬性的功能與 async_uuid MIDL 屬性相同

範例

// cpp_attr_ref_async_uuid.cpp
// compile with: /LD
#include <Windows.h>
[module(name="Test")];
[object, uuid("9e66a290-4365-11d2-a997-00c04fa37ddb"),
async_uuid("e8583106-38fd-487e-912e-4fc8645c677e")]
__interface ICustom {
   HRESULT Custom([in] long l, [out, retval] long *pLong);
};

需求

屬性內容
適用於 interface
可重複 No
必要屬性
無效屬性 dual dispinterface

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

另請參閱

IDL 屬性
介面屬性