編譯器錯誤 C3296
'property': 已經有這個名稱的屬性
編譯器遇到具有相同名稱的多個屬性。 類型中的每個屬性都必須具有唯一的名稱。
如需詳細資訊,請參閱 property。
範例
下列範例會產生 C3296。
// C3296.cpp
// compile with: /clr /c
using namespace System;
ref class R {
public:
property int MyProp[int] { int get(int); }
property String^ MyProp[int] { void set(int, String^); } // C3296
};