Condividi tramite


Errore del compilatore C3625

'native type': un tipo nativo non può derivare da un tipo gestito o WinRT 'type'

Una classe nativa non può ereditare da una classe gestita o WinRT. Per altre informazioni, vedere Classes and Structs (Classi e struct).

Esempio

L'esempio seguente genera l'errore C3625:

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