नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'type' : invalid type argument for generic parameter 'param' of generic 'generic_type', does not meet constraint 'constraint'
Remarks
The type was specified for an instantiation of a generic class that does not meet the generic class's constraint.
Example
The following example generates C3214:
// C3214.cpp
// compile with: /clr
interface struct A {};
generic <class T>
where T : A
ref class C {};
ref class X : public A {};
int main() {
C<int>^ c = new C<int>; // C3214
C<X ^> ^ c2 = new C<X^>; // OK
}