NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C3142

'property_name' : you cannot take the address of a property

The address of a property is not available to the programmer.

The following code sample generates C3142:

#include <stdio.h>
__interface IMyI {
   [ property ] int Property;
};

void main() {
  if (&IMyI::Property == 0) { printf("ptr-to-mbr was null.\n"); }
}