DefaultDllImportSearchPathsAttribute.Paths 屬性

定義

會獲得一個位元組合的列舉值,指定函式在平台呼叫時搜尋的路徑 LoadLibraryEx

public:
 property System::Runtime::InteropServices::DllImportSearchPath Paths { System::Runtime::InteropServices::DllImportSearchPath get(); };
public System.Runtime.InteropServices.DllImportSearchPath Paths { get; }
member this.Paths : System.Runtime.InteropServices.DllImportSearchPath
Public ReadOnly Property Paths As DllImportSearchPath

屬性值

一個位元組合的列舉值,指定平台呼叫的搜尋路徑。

備註

當屬性 DefaultDllImportSearchPathsAttribute 套用到組件語言時,路徑預設用於搜尋由組件中程式碼執行的任何平台呼叫的目標。 當屬性套用到單一平台呼叫時,路徑會用來搜尋該平台呼叫的目標,並覆寫組裝所指定的路徑。

適用於