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!

DllImportAttribute Class

Used to indicate that a method in P/Invoke method implemented in unmanaged code. The attribute provides the name of the file (DllName) and the name of the method within that file (EntryPoint) where the implementation can be found.

Object
   Attribute
      DllImportAttribute

[Visual Basic]
Public Class DllImportAttribute
   Inherits Attribute
[C#]
public class DllImportAttribute : Attribute
[C++]
public __gc class DllImportAttribute : public Attribute
[JScript]
public class DllImportAttribute extends Attribute

Remarks

Can be used to attribute methods.

Requirements

Namespace: System.Runtime.InteropServices

Assembly: mscorlib.dll

Example [C#]

[C#]

[DllImport(KERNEL32, EntryPoint="MoveFile",  SetLastError=true, CharSet=CharSet.Auto, ExactSpelling=true, CallingConvention=StdCall)]
public static extern bool MoveFile(String src, String dst);

See Also

DllImportAttribute Members | System.Runtime.InteropServices Namespace