Freigeben über


async_uuid

Gibt die UUID an, die den MIDL-Compiler angibt, um synchrone und asynchrone Versionen einer COM-Schnittstelle zu definieren.

Syntax

[async_uuid (uuid)]

Parameter

uuid
Eine UUID, die die Version der Schnittstelle identifiziert.

Hinweise

Das async_uuid C++-Attribut weist die gleiche Funktionalität wie das async_uuid MIDL-Attribut auf.

Beispiel

// 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);
};

Anforderungen

Attributkontext Wert
Gilt für interface
Wiederholbar Nein
Erforderliche Attribute None
Ungültige Attribute duale, dispinterface

Weitere Informationen zu den Attributkontexten finden Sie unter Attributkontexte.

Siehe auch

IDL-Attribute
Schnittstellenattribut