JniType.GetInstanceField Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetInstanceField(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
Looks up an instance-field identifier for this Java class. |
| GetInstanceField(String, String) |
Looks up an instance-field identifier for this Java class. |
GetInstanceField(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
Looks up an instance-field identifier for this Java class.
public Java.Interop.JniFieldInfo GetInstanceField(ReadOnlySpan<byte> name, ReadOnlySpan<byte> signature);
member this.GetInstanceField : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> Java.Interop.JniFieldInfo
Parameters
- name
- ReadOnlySpan<Byte>
The JNI field-name bytes, with a null terminator available to native code.
- signature
- ReadOnlySpan<Byte>
The JNI field descriptor bytes, with a null terminator available to native code.
Returns
The JNI instance-field information.
Remarks
JNI reads the name and descriptor as null-terminated strings. No managed string conversion is performed.
Applies to
GetInstanceField(String, String)
Looks up an instance-field identifier for this Java class.
public Java.Interop.JniFieldInfo GetInstanceField(string name, string signature);
member this.GetInstanceField : string * string -> Java.Interop.JniFieldInfo
Parameters
- name
- String
The Java field name.
- signature
- String
The JNI field descriptor.
Returns
The JNI instance-field information.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.