语言

JniEnvironment.InstanceMethods.GetMethodID 方法

定义

重载

名称 说明
GetMethodID(JniObjectReference, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

使用以 null 结尾的 UTF-8 名称和签名范围查找 JNI 实例方法 ID。 与文本一起使用 "methodName"u8 以避免字符串封送开销。

GetMethodID(JniObjectReference, String, String)

GetMethodID(JniObjectReference, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

使用以 null 结尾的 UTF-8 名称和签名范围查找 JNI 实例方法 ID。 与文本一起使用 "methodName"u8 以避免字符串封送开销。

public static Java.Interop.JniMethodInfo GetMethodID(Java.Interop.JniObjectReference type, ReadOnlySpan<byte> name, ReadOnlySpan<byte> signature);
static member GetMethodID : Java.Interop.JniObjectReference * ReadOnlySpan<byte> * ReadOnlySpan<byte> -> Java.Interop.JniMethodInfo

参数

signature
ReadOnlySpan<Byte>

返回

适用于

GetMethodID(JniObjectReference, String, String)

public static Java.Interop.JniMethodInfo GetMethodID(Java.Interop.JniObjectReference type, string name, string signature);
static member GetMethodID : Java.Interop.JniObjectReference * string * string -> Java.Interop.JniMethodInfo

参数

name
String
signature
String

返回

注解

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

适用于