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!

20.1.5 The DllImport attribute

The DllImport attribute is used to specify the dll location that contains the implementation of an extern method.

[AttributeUsage(AttributeTargets.Method)]
public class DllImportAttribute: System.Attribute
{
   public DllImportAttribute(string dllName) {…}
   public CallingConvention CallingConvention;
   public CharSet CharSet;
   public string DllName { get {…} }
   public string EntryPoint;
   public bool ExactSpelling;
   public bool SetLastError;
}

Specifically, the DllImport attribute has the following behaviors:

In addition, a method that is decorated with the DllImport attribute must have the extern modifier.