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 C3725

'attribute class': cannot resolve attribute overload

A constructor for an attribute class is not available for an attribute invocation.

The following sample generates C3725:

#using <mscorlib.dll>
using namespace System;

[attribute(All)]
__gc class MyAttr {
public:
   MyAttr() {
   }
   MyAttr(int) {
   }
};

[MyAttr(1, 1)]
// try the following line instead
// [MyAttr(1)]
class AtClass {
};

void main() {
}