नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'param' : generic parameter cannot be constrained in this declaration
Remarks
A constraint was ill formed; the constraint generic parameter must agree with the generic class template parameter.
Example
The following example generates C3217:
// C3217.cpp
// compile with: /clr
interface struct A {};
generic <class T>
ref class C {
generic <class T1>
where T : A // C3217
void f();
};
The following example demonstrates a possible resolution:
// C3217b.cpp
// compile with: /clr /c
interface struct A {};
generic <class T>
ref class C {
generic <class T1>
where T1 : A
void f();
};