הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
'type' must provide an implementation for the interface method 'function'
Remarks
A class that inherits from an interface must implement the interface members.
Example
The following example generates C3766.
// C3766.cpp
// compile with: /clr /c
delegate void MyDel();
interface struct IFace {
virtual event MyDel ^ E;
};
ref struct Class1 : public IFace {}; // C3766
// OK
ref struct Class2 : public IFace {
virtual event MyDel ^ E {
void add(MyDel ^) {}
void remove(MyDel ^) {}
}
};