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 C3721

'function': a NGWS runtime event source must return 'void'

NGWS event sources cannot return values.

The following sample generates C3721:

#using <mscorlib.dll>

[event_source(com+)]
__gc class A {
public:
        __event int func();   // C3721, change 'int' to 'void' to resolve
};

void main() {
}