This documentation is archived and is not being maintained.

DllImportAttribute Constructor

Initializes a new instance of the DllImportAttribute class with the name of the DLL containing the method to import.

[Visual Basic]
Public Sub New( _
   ByVal dllName As String _
public DllImportAttribute(
   string dllName
public: DllImportAttribute(
   String* dllName
public function DllImportAttribute(
   dllName : String


The name of the DLL that contains the unmanaged method.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

DllImportAttribute Class | DllImportAttribute Members | System.Runtime.InteropServices Namespace