'property_name': 您無法取得屬性的位址
備註
開發人員無法使用屬性的位址。
Example
下列範例會產生 C3142:
// C3142_2.cpp
// compile with: /clr
using namespace System;
ref class CSize {
private:
property int Size {
int get();
}
};
int main() {
&CSize::Size; // C3142
}
'property_name': 您無法取得屬性的位址
開發人員無法使用屬性的位址。
下列範例會產生 C3142:
// C3142_2.cpp
// compile with: /clr
using namespace System;
ref class CSize {
private:
property int Size {
int get();
}
};
int main() {
&CSize::Size; // C3142
}