System.Runtime.InteropServices.DllImportAttribute.Value Property

Gets the name of the DLL file that contains the entry point.

Syntax

public string Value { get; }

Value

A string containing the name of the shared library file from which a function implementation is imported.

Remarks

You can provide a full or relative path. If you provide no path, the DLL must be in the current path at run time, unless the DLL is loaded by some other means. Be aware, however, that using a fully qualified path can introduce inaccuracy if the DLL is moved.

Requirements

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