共用方式為


編譯器錯誤 C3161

'interface' :介面中的巢狀類別、結構、等位或介面是非法的;類別、結構或等位中的巢狀介面是非法的

__interface只能出現在全域範圍或命名空間內。 類別、結構或等位不能出現在介面中。

範例

下列範例會產生 C3161。

// C3161.cpp
// compile with: /c
__interface X {
   __interface Y {};   // C3161 A nested interface
};