Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Error C3464

Error Message

'type' a nested type cannot be forwarded

Type forwarding does not work on nested types.

For more information, see Type Forwarding.


The following sample creates a component.

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

The following sample generates C3464.

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

Community Additions

© 2015 Microsoft