Kompilatorfel C3464

"type" en kapslad typ kan inte vidarebefordras

Anmärkningar

Vidarebefordran av typ fungerar inte på kapslade typer.

Mer information finns i Type Forwarding (C++/CLI).

Example

I följande exempel skapas en komponent.

// C3464.cpp
// compile with: /LD /clr
public ref class R {
public:
   ref class N {};
};

I följande exempel genereras C3464.

// C3464_b.cpp
// compile with: /clr /c
#using "C3464.dll"
[assembly:TypeForwardedTo(R::N::typeid)];   // C3464
[assembly:TypeForwardedTo(R::typeid)];   // OK