編譯器錯誤 C3910
'event': 必須定義成員 'method'
已定義事件,但不包含指定的必要存取子方法。
如需詳細資訊,請參閱 事件。
下列範例會產生 C3910:
// C3910.cpp
// compile with: /clr /c
delegate void H();
ref class X {
event H^ E {
// uncomment the following lines
// void add(H^) {}
// void remove( H^ h ) {}
// void raise( ) {}
}; // C3910
event H^ E2; // OK data member
};