หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'type': only a user-defined type can be forwarded
Remarks
For more information, see Type Forwarding (C++/CLI).
Example
The following example creates a component.
// C3460.cpp
// compile with: /LD /clr
public ref class R {};
The following example generates C3460.
// C3460_b.cpp
// compile with: /clr /c
#using "C3460.dll"
[assembly:TypeForwardedTo(int::typeid)]; // C3460
[assembly:TypeForwardedTo(R::typeid)];