JniEnvironment.Types.RegisterNatives 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| 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
参数
- type
- JniObjectReference
- methods
- JniNativeMethodRegistration[]
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
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
参数
- type
- JniObjectReference
- methods
- ReadOnlySpan<JniNativeMethod>
适用于
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
参数
- type
- JniObjectReference
- methods
- JniNativeMethodRegistration[]
- numMethods
- Int32
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。