Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
'property': non dispone di un metodo set o get
Osservazioni:
Una proprietà deve avere almeno un get metodo o .set Per altre informazioni, vedere property.
Example
L'esempio seguente genera l'errore C3903:
// C3903.cpp
// compile with: /clr
ref class X {
property int P {
void f(int){}
// Add one or both of the following lines.
// void set(int){}
// int get(){return 0;}
}; // C3903
property double Q[,,,,] {
void f(){}
// Add one or both of the following lines.
// void set(int, char, int, char, double, double){}
// double get(int, char, int, char, double){return 1.1;}
} // C3903
};