Note
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier les répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de changer de répertoire.
les attributs ne sont pas autorisés dans un indexeur de propriété
Remarques
Une propriété indexée a été déclarée incorrectement. Pour plus d’informations, consultez How to : Use Properties in C++/CLI.
Exemple
L’exemple suivant génère l’erreur C3155.
// C3155.cpp
// compile with: /clr /c
using namespace System;
ref struct R {
property int F[[ParamArray] int] { // C3155
// try the following line instead
// property int F[ int] { // OK
int get(int i) {
return 0;
}
}
};