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,可能會造成不準確。

適用於