הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
'member': not allowed in current scope
Remarks
Property blocks can contain function declarations and inline function definitions only. No members other than functions are allowed in property blocks. No typedefs, operators, or friend functions are allowed. For more information, see property.
Event definitions can only contain access methods and functions.
Examples
The following example generates C3900:
// C3900.cpp
// compile with: /clr
ref class X {
property int P {
void set(int); // OK
int i; // C3900 variable declaration
};
};
The following example generates C3900:
// C3900b.cpp
// compile with: /clr
using namespace System;
delegate void H();
ref class X {
event H^ E {
int m; // C3900
// OK
void Test() {}
void add( H^ h ) {}
void remove( H^ h ) {}
void raise( ) {}
}
};