Freigeben über


async_uuid

Gibt das UUID an, das den MIDL-Compiler, weist die synchronen und asynchronen Versionen einer COM-Schnittstelle zu definieren.

[async_uuid (
   uuid
)]

Parameter

  • uuid
    Ein UUID, das die Version der Schnittstelle identifiziert.

Hinweise

Das Attribut async_uuid C++ verfügt über die gleichen Funktionen wie das async_uuid MIDL-Attribut.

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

Attribut-Kontext

Betrifft

interface

Wiederholbar

Nein

Erforderliche Attribute

None

Ungültige Attribute

dual, dispinterface

Weitere Informationen über das kontexte finden Sie unter Attribut-Kontexte.

Siehe auch

Weitere Ressourcen

IDL-Attribute

Schnittstellenattribut

Attributes Samples