共用方式為


編譯器錯誤 C3183

無法在 Managed 或 WinRT 類型 'type' 內部定義未命名的類別、結構或等位

內嵌在 Managed 或 WinRT 類型中的類型必須命名。

下列範例會產生 C3183:

// C3183a.cpp
// compile with: /clr /c
ref class Test
{
   ref class
   {  // C3183, delete class or name it
      int a;
      int b;
   };
};