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 C3726

'class': cannot resolve attribute usage 'usage'

The first parameter to the attribute attribute must specify where the attribute will be valid.

The following sample generates C3726:

#using <mscorlib.dll>
using namespace System;

[attribute("MyAt")]
// try the following line instead
// [attribute(All)]
__gc class MyAttr {
        public:
      MyAttr() {
      }
};   // C3726

void main() {
}