分享方式:


編譯器警告 (層級 1) C4376

不再支援 access 規範 'old_specifier:':',請改用 'new_specifier:'

如需在中繼資料中指定類型和成員協助工具的詳細資訊,請參閱 如何:定義和使用類別和結構中的類型可見度 成員可見度 (C++/CLI)。

範例

下列範例會產生 C4376。

// C4376.cpp
// compile with: /clr /W1 /c
public ref class G {
public public:   // C4376
   void m2();
};

public ref class H {
public:   // OK
   void m2();
};