Muokkaa

Jaa


Compiler Error C2035

a non-virtual destructor with 'accessibility' accessibility is not allowed for this type
a non-virtual destructor must have 'protected private' or 'private' accessibility

A non-virtual Windows Runtime class has an access specifier or sealed specifier that's not allowed for a non-virtual destructor. For more information, see Ref classes and structs.

To fix this error, change the accessibility of the destructor.