Freigeben über


uidefault

Gibt an, dass das Typinformationselement das Standardelement für die Anzeige auf der Benutzeroberfläche ist.

Syntax

[uidefault]

Hinweise

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

Beispiel

Der folgende Code zeigt ein Beispiel für uidefault:

// cpp_attr_ref_uidefault.cpp
// compile with: /LD
#include "unknwn.h"
[module(name="MyLib")];

[object, uuid("9E66A290-4365-11D2-A997-00C04FA37DDB")]
__interface ICustom{
   HRESULT Custom([in] long l, [out, retval] long *pLong);
   [uidefault]HRESULT id0([in] long l);
   [uidefault]HRESULT id1([in] long l);

   [uidefault, propget] HRESULT get_y(int *y);
   [uidefault, propput] HRESULT put_y(int y);
};

Anforderungen

Attributkontext Wert
Gilt für Schnittstellenmethode
Wiederholbar Nein
Erforderliche Attribute None
Ungültige Attribute None

Weitere Informationen zu den Attributkontexten finden Sie unter Attributkontexte.

Siehe auch

IDL-Attribute
Methodenattribut