Notiz
Zougrëff op dës Säit erfuerdert Autorisatioun. Dir kënnt probéieren, Iech unzemellen oder Verzeechnesser ze änneren.
Zougrëff op dës Säit erfuerdert Autorisatioun. Dir kënnt probéieren, Verzeechnesser ze änneren.
'finalizer' : a finalizer can only be a member of a reference type
Remarks
You cannot declare a finalizer in a native or value type.
For more information, see Destructors and finalizers in How to: Define and consume classes and structs (C++/CLI).
Example
The following example generates C3077.
// C3077.cpp
// compile with: /clr /c
value struct vs {
!vs(){} // C3077
};
ref struct rs {
protected:
!rs(){} // OK
};