नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
a default property cannot be static
Remarks
A default property was declared incorrectly. For more information, see How to: Use Properties in C++/CLI.
Example
The following example generates C3914 and shows how to fix it.
// C3914.cpp
// compile with: /clr /c
ref struct X {
static property int default[int] { // C3914
// try the following line instead
// property int default[int] {
int get(int) { return 0; }
void set(int, int) {}
}
};