Kompilatorfel C2353

undantagsspecifikation tillåts inte

Anmärkningar

Undantagsspecifikationer tillåts inte för medlemsfunktioner i hanterade klasser.

Example

I följande exempel genereras C2353:

// C2353.cpp
// compile with: /clr /c
ref class X {
   void f() throw(int);   // C2353
   void f();   // OK
};