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 CS0624

'method' : returnshresult attribute can only be placed on methods which are dllimport or members of a COM classic interface.

The returnshresult attribute was not used correctly.

The following sample generates CS0624:

using System;

public class MainClass {
   [returnshresult(true)]
   public void mf () {   // CS0624
   }
   // try the following lines instead
   // [returnshresult(true), dllimport("some.dll")]
   // public static extern void mf();
      public static void Main () {
      }
}