'type': 只能轉送匯入的類型
備註
TypeForwardedTo 屬性必須套用至參考的中繼資料中的類型。
如需詳細資訊,請參閱類型轉送(C++/CLI)。
Example
下列範例會建立元件。
// C3462.cpp
// compile with: /clr /LD
public ref class R {};
下列範例會產生 C3462。
// C3462b.cpp
// compile with: /clr /c
#using "C3462.dll"
ref class N {};
[assembly:TypeForwardedTo(N::typeid)]; // C3462
[assembly:TypeForwardedTo(R::typeid)];