नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'finalizer' : a finalizer cannot be virtual
Remarks
A finalizer can only be called non-virtually from its enclosing type. Therefore, it is an error to declare a virtual finalizer.
For more information, see Destructors and finalizers in How to: Define and consume classes and structs (C++/CLI).
Example
The following example generates C3420.
// C3420.cpp
// compile with: /clr /c
ref class R {
virtual !R() {} // C3420
};