JniEnvironment.InstanceFields.GetFieldID メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| GetFieldID(JniObjectReference, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
NULL で終わる UTF-8 名と署名スパンを使用して、JNI インスタンス フィールド ID を検索します。
文字列マーシャリングのオーバーヘッドを回避するには、 |
| GetFieldID(JniObjectReference, String, String) |
GetFieldID(JniObjectReference, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
NULL で終わる UTF-8 名と署名スパンを使用して、JNI インスタンス フィールド ID を検索します。
文字列マーシャリングのオーバーヘッドを回避するには、 "fieldName"u8 リテラルと共に使用します。
public static Java.Interop.JniFieldInfo GetFieldID(Java.Interop.JniObjectReference type, ReadOnlySpan<byte> name, ReadOnlySpan<byte> signature);
static member GetFieldID : Java.Interop.JniObjectReference * ReadOnlySpan<byte> * ReadOnlySpan<byte> -> Java.Interop.JniFieldInfo
パラメーター
- type
- JniObjectReference
- name
- ReadOnlySpan<Byte>
- signature
- ReadOnlySpan<Byte>
返品
適用対象
GetFieldID(JniObjectReference, String, String)
public static Java.Interop.JniFieldInfo GetFieldID(Java.Interop.JniObjectReference type, string name, string signature);
static member GetFieldID : Java.Interop.JniObjectReference * string * string -> Java.Interop.JniFieldInfo
パラメーター
- type
- JniObjectReference
- name
- String
- signature
- String
返品
注釈
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。