नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'identifier' : no 'put' method is associated with this property
Remarks
A data member declared with property has no put function, but an expression tries to set its value.
Example
The following example generates C2774:
// C2774.cpp
struct A {
__declspec(property(get=GetProp)) int prop;
int GetProp(void);
__declspec(property(get=GetProp2, put=PutProp2)) int prop2;
int GetProp2(void);
void PutProp2(int);
};
int main() {
A* pa = new A;
int val = 0;
pa->prop = val; // C2774
pa->prop++; // C2774
}