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 CS0581

Named arguments not allowed on attribute 'attribute'

Some attributes do not take named arguments.

The following sample generates CS0581:

public class MyClass {

   [name("xxx", namedarg=3)]   // CS0581
   // try the following line instead
   // [name("xxx")]
        public int this[int index] {
      get { 
         return 0; 
      }
   }

   public static void Main() {
   }
}