Compiler Error C2030
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C2030.
a destructor with 'protected private' accessibility cannot be a member of a class declared 'sealed'
A Windows Runtime class declared as sealed cannot have a protected private destructor. Only public virtual and private non-virtual destructors are allowed on sealed types. For more information, see Ref classes and structs.
To fix this error, change the accessibility of the destructor.
Show: