'declaration' : property methods can only be associated with non-static data members
This error occurs when the property extended attribute is applied to a static data member of a class or structure. For example:
struct A {
static __declspec(property(put=PutProp))
int prop; // error C2779
int PutProp(void);
};