הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
direct call of interface or pure method 'method' will fail at runtime
Remarks
A call was made to an interface method or a pure method, which is not allowed.
Example
The following example generates C3278:
// C3278_2.cpp
// compile with: /clr
using namespace System;
interface class I
{
void vmf();
};
public ref class C: public I
{
public:
void vmf()
{
Console::WriteLine( "In C::vmf()" );
I::vmf(); // C3278
}
};
int main()
{
C^ pC = gcnew C;
pC->vmf();
}