共用方式為


編譯器錯誤 C3625

'native_type':不可以從 Managed 或 WinRT 類型 'type' 衍生原生類型

原生類別不可繼承自 Managed 或 WinRT 類別。 如需詳細資訊,請參閱類別與結構

範例

下列範例會產生 C3625:

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