הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
indexed property cannot have an empty parameter list
Remarks
An indexed property was declared incorrectly. For more information, see How to: Use Properties in C++/CLI.
Example
The following example generates C3799 and shows how to fix it.
// C3799.cpp
// compile with: /clr /c
ref struct C {
property int default[] { // C3799
// try the following line instead
// property int default[int] {
int get(int index) { return 0; }
void set(int index, int value) {}
}
};