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 CS0619

'member' is obsolete: 'text'

A class member was marked with the obsolete attribute, such that an error will be issued when the class member is referenced.

The following sample generates CS0619:

public class C {
   [obsolete("Use newMethod instead", true)]   // generates an error on use
   public static void m() {
   }

   // this is the method you should be using
   public static void newMethod() {
   }
}

class MyClass {
   public static void Main() {
      C.m();   // CS0619
   }
}