This documentation is archived and is not being maintained.

DllImportAttribute.Value Property

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

[Visual Basic]
Public ReadOnly Property Value As String
[C#]
public string Value {get;}
[C++]
public: __property String* get_Value();
[JScript]
public function get Value() : String;

Property Value

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

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

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

Show: