語言

JniEnvironment.Types.RegisterNatives 方法

定義

多載

名稱 Description
RegisterNatives(JniObjectReference, JniNativeMethodRegistration[])
RegisterNatives(JniObjectReference, ReadOnlySpan<JniNativeMethod>)

暫存 JNI 原生方法,使用可 JniNativeMethod 位特化結構,搭配原始函數指標及 UTF-8 名稱/簽名指標。 呼叫 JNI RegisterNatives 直接運作,無需委派編組。

RegisterNatives(JniObjectReference, JniNativeMethodRegistration[], Int32)

RegisterNatives(JniObjectReference, JniNativeMethodRegistration[])

public static void RegisterNatives(Java.Interop.JniObjectReference type, Java.Interop.JniNativeMethodRegistration[] methods);
static member RegisterNatives : Java.Interop.JniObjectReference * Java.Interop.JniNativeMethodRegistration[] -> unit

參數

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

RegisterNatives(JniObjectReference, ReadOnlySpan<JniNativeMethod>)

暫存 JNI 原生方法,使用可 JniNativeMethod 位特化結構,搭配原始函數指標及 UTF-8 名稱/簽名指標。 呼叫 JNI RegisterNatives 直接運作,無需委派編組。

public static void RegisterNatives(Java.Interop.JniObjectReference type, ReadOnlySpan<Java.Interop.JniNativeMethod> methods);
static member RegisterNatives : Java.Interop.JniObjectReference * ReadOnlySpan<Java.Interop.JniNativeMethod> -> unit

參數

適用於

RegisterNatives(JniObjectReference, JniNativeMethodRegistration[], Int32)

public static void RegisterNatives(Java.Interop.JniObjectReference type, Java.Interop.JniNativeMethodRegistration[] methods, int numMethods);
static member RegisterNatives : Java.Interop.JniObjectReference * Java.Interop.JniNativeMethodRegistration[] * int -> unit

參數

numMethods
Int32

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於