'declaration' :屬性方法只能與非靜態數據成員相關聯
備註
擴充 property 屬性不正確地套用至靜態數據成員。
範例
下列範例會產生 C2779:
// C2779.cpp
struct A {
static __declspec(property(put=PutProp))
// try the following line instead
__declspec(property(put=PutProp))
int prop; // C2779
int PutProp(void);
};