Mono Class Library: System.Runtime.InteropServices.DllImportAttribute Overview | Members

System.Runtime.InteropServices.DllImportAttribute Constructor

Constructs and initializes a new instance of the System.Runtime.InteropServices.DllImportAttribute class.

public DllImportAttribute (string dllName)

Parameters

dllName
A string that specifies the name of the shared library containing the unmanaged method to import.

Remarks

If the shared library specified in dllName is not found, an error occurs at runtime.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0