Muistiinpano
Tälle sivulle pääsy edellyttää valtuutusta. Voit yrittää kirjautua sisään tai vaihtaa hakemistoja.
Tälle sivulle pääsy edellyttää valtuutusta. Voit yrittää vaihtaa hakemistoja.
cannot define a union 'union' inside of managed type 'type'
Remarks
A union cannot be defined inside a managed type.
Example
The following example generates C3126:
// C3126_2.cpp
// compile with: /clr /c
ref class Test
{
union x
{ // C3126
int a;
int b;
};
};