Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
'type': only a managed type can be forwarded
Remarks
Type forwarding can only occur on CLR types. See Classes and Structs for more information.
For more information, see Type Forwarding (C++/CLI).
Example
The following example creates a component.
// C3461.cpp
// compile with: /clr /LD
public ref class R {};
The following example generates C3461.
// C3461b.cpp
// compile with: /clr /c
#using "C3461.dll"
class N {};
[assembly:TypeForwardedTo(N::typeid)]; // C3461
[assembly:TypeForwardedTo(R::typeid)]; // OK