Teilen über


Compilerfehler C3468

'type': Sie können nur einen Typ an eine Assembly weiterleiten: "Identifier" ist keine Assembly.

Bemerkungen

Es können nur Typen in einer Assembly weitergeleitet werden.

Weitere Informationen finden Sie unter Type Forwarding (C++/CLI).For more information, see Type Forwarding (C++/CLI).

Example

Im folgenden Beispiel wird ein Modul erstellt.

// C3468.cpp
// compile with: /LN /clr
public ref class R {};

Im folgenden Beispiel wird C3468 generiert.

// C3468_b.cpp
// compile with: /clr /c
#using "C3468.netmodule"
[ assembly:TypeForwardedTo(R::typeid) ];   // C3468