JniEnvironment.Types.RegisterNatives 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | 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
參數
- type
- JniObjectReference
- methods
- JniNativeMethodRegistration[]
備註
本頁部分內容為基於 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
參數
- 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
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。