Compiler Error C3461
'type': only a managed type can be forwarded
Type forwarding can only occur on CLR types. See Classes and Structs for more information.
For more information, see Type Forwarding (C++/CLI).
Examples
The following sample creates a component.
// C3461.cpp
// compile with: /clr /LD
public ref class R {};
The following sample generates C3461.
// C3461b.cpp
// compile with: /clr /c
#using "C3461.dll"
class N {};
[assembly:TypeForwardedTo(N::typeid)]; // C3461
[assembly:TypeForwardedTo(R::typeid)]; // OK
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for