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 C3152

'element' : 'attribute' can only be applied to a class

Certain attributes can only be applied to a C++ class.

The following sample generates C3152:

#using <mscorlib.dll>

__value __interface A {   // C3152;
};

__value class X {
   int f();
};

void main(){
}