Megosztás a következőn keresztül:


C3807 fordítási hiba

"type" : a ComImport attribútummal rendelkező osztály nem származhat a "type2"-ből, csak a felület implementálása engedélyezett

Megjegyzések

A származtatott ComImportAttribute típusok csak interfészt implementálhatnak.

Example

Az alábbi példa C3807-et hoz létre.

// C3807.cpp
// compile with: /clr /c
ref struct S {};
interface struct I {};

[System::Runtime::InteropServices::ComImportAttribute()]
ref struct S1 : S {};   // C3807
ref struct S2 : I {};