הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
base class 'base_type' is less accessible than 'derived_type'
Remarks
A type that will be visible from an assembly must use publicly visible base classes.
Example
The following example generates C3213:
// 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;
};