Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
"accessor_function": måste ha returtypen "typ"
Anmärkningar
Minst en get-metods returtyp måste matcha egenskapstypen. Mer information finns under egenskapen.
Example
I följande exempel genereras C3901:
// C3901.cpp
// compile with: /clr /c
using namespace System;
ref class X {
property String^ Name {
void get(); // C3901
// try the following line instead
// String^ get();
};
};
ref class Y {
property double values[int, int] {
int get(int, int); // C3901
// try the following line instead
// double get(int, int);
};
};