Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
"event_accessor_method": funktionen måste ha typen "signatur"
Anmärkningar
En händelses accessor-metod har inte deklarerats korrekt.
Mer information finns i händelsen.
Example
I följande exempel genereras C3911:
// C3911.cpp
// compile with: /clr
using namespace System;
delegate void H(String^, int);
ref class X {
event H^ E1 {
void add() {} // C3911
// try the following line instead
// void add(H ^ h) {}
void remove(){}
// try the following line instead
// void remove(H ^ h) {}
void raise(){}
// try the following line instead
// void raise(String ^ s, int i) {}
};
};