Aracılığıyla paylaş


Derleyici Hatası C3213

'base_type' temel sınıfı 'derived_type' değerinden daha az erişilebilir

Açıklamalar

Bir derlemeden görünür olacak bir tür genel olarak görünür temel sınıfları kullanmalıdır.

Example

Aşağıdaki örnek C3213 oluşturur:

// 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;
};