编译器错误 C3625

“native_type”:本机类型不能从托管或 WinRT 类型“type”派生

本机类不能从托管或 WinRT 类继承。 有关更多信息,请参阅类和结构

示例

以下示例生成 C3625:

// C3625.cpp
// compile with: /clr /c
ref class B {};
class D : public B {};   // C3625 cannot inherit from a managed class