语言

JniEnvironment.Types.RegisterNatives 方法

定义

重载

名称 说明
RegisterNatives(JniObjectReference, JniNativeMethodRegistration[])
RegisterNatives(JniObjectReference, ReadOnlySpan<JniNativeMethod>)

使用具有原始函数指针和 UTF-8 名称/签名指针的 blittable JniNativeMethod 结构注册 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>)

使用具有原始函数指针和 UTF-8 名称/签名指针的 blittable JniNativeMethod 结构注册 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

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于