Muistiinpano
Tälle sivulle pääsy edellyttää valtuutusta. Voit yrittää kirjautua sisään tai vaihtaa hakemistoja.
Tälle sivulle pääsy edellyttää valtuutusta. Voit yrittää vaihtaa hakemistoja.
access level less restrictive than 'construct'
Remarks
A property accessor method (get or set) cannot have less restrictive access than the access specified on the property itself. Similarly, for event accessor methods.
For more information, see property and event.
Example
The following example generates C3908:
// C3908.cpp
// compile with: /clr
ref class X {
protected:
property int i {
public: // C3908 property i is protected
int get();
private:
void set(int); // OK more restrictive
};
};