Language

JniEnvironment.Types.RegisterNatives メソッド

定義

オーバーロード

名前 説明
RegisterNatives(JniObjectReference, JniNativeMethodRegistration[])
RegisterNatives(JniObjectReference, ReadOnlySpan<JniNativeMethod>)

blittable JniNativeMethod 構造体を使用して、生の関数ポインターと UTF-8 名/署名ポインターを使用して JNI ネイティブ メソッドを登録します。 デリゲート マーシャリングなしで 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

パラメーター

注釈

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

RegisterNatives(JniObjectReference, ReadOnlySpan<JniNativeMethod>)

blittable JniNativeMethod 構造体を使用して、生の関数ポインターと UTF-8 名/署名ポインターを使用して JNI ネイティブ メソッドを登録します。 デリゲート マーシャリングなしで 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

注釈

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象