הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
function does not take any arguments
Remarks
You attempted to use arguments with a destructor or finalizer.
For more information, see Destructors and finalizers.
Example
The following example generates C2521.
// C2521.cpp
// compile with: /clr
ref class R {
protected:
!R() {}
public:
void CleanUp() {
this->!R(4); // C2521
this->!R(); // OK
}
};
int main() {
R^ r = gcnew R();
r->CleanUp();
}