Merk
Tilgang til denne siden krever autorisasjon. Du kan prøve å logge på eller endre kataloger.
Tilgang til denne siden krever autorisasjon. Du kan prøve å endre kataloger.
constraint must be a generic parameter, not 'type'
Remarks
A constraint was ill formed.
Example
The following example generates C3216:
// C3216.cpp
// compile with: /clr
interface struct A {};
generic <class T>
where F : A // C3216
// Try the following line instead:
// where T : A // C3216
ref class C {};
The following example demonstrates a possible resolution:
// C3216b.cpp
// compile with: /clr /c
interface struct A {};
generic <class T>
where T : A
ref class C {};