語言

JniEnvironment.StaticFields.GetStaticFieldID 方法

定義

多載

名稱 Description
GetStaticFieldID(JniObjectReference, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

使用 null-terminald 的 UTF-8 名稱與簽章區間查詢 JNI 靜態欄位 ID。 "fieldName"u8使用文字函數以避免字串分流過頭。

GetStaticFieldID(JniObjectReference, String, String)

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

使用 null-terminald 的 UTF-8 名稱與簽章區間查詢 JNI 靜態欄位 ID。 "fieldName"u8使用文字函數以避免字串分流過頭。

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

參數

signature
ReadOnlySpan<Byte>

傳回

適用於

GetStaticFieldID(JniObjectReference, String, String)

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

參數

name
String
signature
String

傳回

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於