DllImportAttribute.Value 属性

定义

获取包含入口点的 DLL 文件的名称。

public:
 property System::String ^ Value { System::String ^ get(); };
public string Value { get; }
member this.Value : string
Public ReadOnly Property Value As String

属性值

包含入口点的 DLL 文件的名称。

注解

可以提供完整路径或相对路径。 如果未提供路径,则 DLL 在运行时必须位于当前路径中,除非 DLL 是通过其他某种方式加载的。 但请注意,如果移动 DLL,则使用完全限定的路径可能会导致不准确。

适用于