This documentation is archived and is not being maintained.

Compiler Error C2605

Error Message

'name' : this method is reserved within a managed class

Certain names are reserved by the compiler for internal functions. For more information, see Destructors and Finalizers in Visual C++.

Example

The following sample generates C2605.

// C2605.cpp
// compile with: /clr /c
ref class R {
protected:
   void Finalize() {}   // C2605
};
Show: