Delen via


Compilerfout C3213

basisklasse 'base_type' is minder toegankelijk dan 'derived_type'

Opmerkingen

Een type dat zichtbaar is vanuit een assembly, moet openbaar zichtbare basisklassen gebruiken.

Example

In het volgende voorbeeld wordt C3213 gegenereerd:

// C3213.cpp
// compile with: /clr
private ref struct privateG {
public:
   int i;
};

public ref struct publicG {
public:
   int i;
};

public ref struct V : public privateG {   // C3213
public:
   int j;
};

public ref struct W: public publicG {   // OK
public:
   int j;
};