Share via


NativeLibrary.GetExport(IntPtr, String) 方法

定義

取得匯出符號的位址。

public:
 static IntPtr GetExport(IntPtr handle, System::String ^ name);
public static IntPtr GetExport (IntPtr handle, string name);
static member GetExport : nativeint * string -> nativeint
Public Shared Function GetExport (handle As IntPtr, name As String) As IntPtr

參數

handle
IntPtr

nativeint

原生程式庫作業系統控點。

name
String

匯出符號的名稱。

傳回

IntPtr

nativeint

符號的位址。

例外狀況

handleZero,或 namenull

找不到符號。

備註

這是OS呼叫的簡單包裝函式,不會執行任何名稱管理。

不支援使用 以外的IntPtr.Zero無效handle參數呼叫這個方法,並會導致未定義的行為。

適用於