プロパティ宣言はマネージド型または WinRT 型の定義内でのみ使用できます
注釈
property を宣言できるのは、マネージド型または Windows ランタイム型の中だけです。 ネイティブ型では、property キーワードがサポートされていません。
例
次の例では C3813 が生成され、その修正方法が示されています。
// C3813.cpp
// compile by using: cl /c /clr C3813.cpp
class A
{
property int Int; // C3813
};
ref class B
{
property int Int; // OK - declared within managed type
};