JniEnvironment.StaticMethods.GetStaticMethodID 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetStaticMethodID(JniObjectReference, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
查詢使用 null-terminald UTF-8 名稱與簽章範圍的 JNI 靜態方法 ID。
|
| GetStaticMethodID(JniObjectReference, String, String) |
GetStaticMethodID(JniObjectReference, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
查詢使用 null-terminald UTF-8 名稱與簽章範圍的 JNI 靜態方法 ID。
"methodName"u8使用文字函數以避免字串分流過頭。
public static Java.Interop.JniMethodInfo GetStaticMethodID(Java.Interop.JniObjectReference type, ReadOnlySpan<byte> name, ReadOnlySpan<byte> signature);
static member GetStaticMethodID : Java.Interop.JniObjectReference * ReadOnlySpan<byte> * ReadOnlySpan<byte> -> Java.Interop.JniMethodInfo
參數
- type
- JniObjectReference
- name
- ReadOnlySpan<Byte>
- signature
- ReadOnlySpan<Byte>
傳回
適用於
GetStaticMethodID(JniObjectReference, String, String)
public static Java.Interop.JniMethodInfo GetStaticMethodID(Java.Interop.JniObjectReference type, string name, string signature);
static member GetStaticMethodID : Java.Interop.JniObjectReference * string * string -> Java.Interop.JniMethodInfo
參數
- type
- JniObjectReference
- name
- String
- signature
- String
傳回
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。