Kompilatorfel C3813

en egenskapsdeklaration kan endast förekomma inom definitionen av en hanterad eller WinRT-typ

Anmärkningar

En egenskap kan bara deklareras inom en hanterad eller Windows Runtime-typ. Inbyggda typer stöder inte nyckelordet property .

Example

Följande exempel genererar C3813 och visar hur du åtgärdar det:

// 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
};