Condividi tramite


Errore del compilatore C3468

'type': è possibile inoltrare un tipo solo a un assembly: 'identifier' non è un assembly

Osservazioni:

È possibile inoltrare solo i tipi in un assembly.

Per altre informazioni, vedere Inoltro dei tipi (C++/CLI).

Example

Nell'esempio seguente viene creato un modulo.

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

L'esempio seguente genera l'errore C3468.

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