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 CS0612

'member' is obsolete

The class designer marked a member with the obsolete attribute. This means that the member might not be supported in a future version of the class.

The following sample shows how accessing an obsolete member generates CS0612:

class MyClass {
   [obsolete]
   public static void ObsoleteMethod() {
   }
   [obsolete]
   public static int ObsoleteField;
}

class MainClass {
   static public void Main() {
      MyClass.ObsoleteMethod();   // CS0612 here: method is deprecated
      MyClass.ObsoleteField = 0;   // CS0612 here: field is deprecated
   }
}