共用方式為


編譯器錯誤 C3468

'type': 您只可以將類型轉送到組件:

'file' 不是組件

僅能轉送組件中的類型。

如需詳細資訊,請參閱類型轉送(C++/CLI)。

範例

下列範例會建立模組。

// C3468.cpp
// compile with: /LN /clr
public ref class R {};

下列範例會產生 C3468。

// C3468_b.cpp
// compile with: /clr /c
#using "C3468.netmodule"
[ assembly:TypeForwardedTo(R::typeid) ];   // C3468