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 C3150

'element' : 'attribute' can only be applied to a class, interface, array or pointer

The managed attribute can only be used on a class, interface, or array.

The following sample generates C3150:

#using <mscorlib.dll>

__gc void f() {   // C3150; function cannot be managed
}

void main() {
}