JniEnvironment.InstanceMethods.GetMethodID 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| GetMethodID(JniObjectReference, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
使用以 null 结尾的 UTF-8 名称和签名范围查找 JNI 实例方法 ID。
与文本一起使用 |
| 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
参数
- type
- JniObjectReference
- name
- ReadOnlySpan<Byte>
- 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
参数
- type
- JniObjectReference
- name
- String
- signature
- String
返回
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。