नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
a generic event is not allowed
Remarks
The compiler only allows generic classes, structs, and functions. For more information, see Generics.
Example
The following example generates C3722:
// C3722.cpp
// compile with: /clr
generic <typename T>
public delegate void MyEventHandler(System::Object^ sender, System::EventArgs^ e, T optional);
generic <class T>
public ref struct MyButton {
generic<typename U>
event MyEventHandler<U>^ Click; // C3722
};