Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'property_name' : you cannot take the address of a property
Remarks
The address of a property is not available to the developer.
Example
The following example generates C3142:
// C3142_2.cpp
// compile with: /clr
using namespace System;
ref class CSize {
private:
   property int Size {
      int get();
   }
};
int main() {
    &CSize::Size; // C3142
}