Compiler Error C3912


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at Compiler Error C3912.

event': type of event must be a delegate type

An event was declared but was not of the proper type.

For more information, see event.

The following sample generates C3912:

// C3912.cpp  
// compile with: /clr  
delegate void H();  
ref class X {  
   event int Ev;   // C3912  
   event H^ Ev2;   // OK