नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'property': obsolete construct declaration style
Remarks
A property or event definition used syntax from a version before Visual Studio 2005.
For more information, see property.
Example
The following example generates C3917:
// C3917.cpp
// compile with: /clr /c
public ref class C {
private:
int m_length;
public:
C() {
m_length = 0;
}
property int get_Length(); // C3917
// The correct property definition:
property int Length {
int get() {
return m_length;
}
void set( int i ) {
m_length = i;
}
}
};