共用方式為


編譯器錯誤 C3923

'member':WinRT 或 Managed 類別的成員函式中不允許有區域類別、結構或等位定義

範例

下列範例會產生 C3923。

// C3923.cpp
// compile with: /clr /c
ref struct x {
   void Test() {
      struct a {};   // C3923
      class b {};   // C3923
      union c {};   // C3923
   }
};