JniEnvironment.StaticFields.GetStaticFieldID 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 |
|---|---|
| GetStaticFieldID(JniObjectReference, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
Looks up a JNI static field ID using null-terminated UTF-8 name and signature spans.
Use with |
| GetStaticFieldID(JniObjectReference, String, String) |
GetStaticFieldID(JniObjectReference, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
Looks up a JNI static field ID using null-terminated UTF-8 name and signature spans.
Use with "fieldName"u8 literals to avoid string marshalling overhead.
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
Parameters
- type
- JniObjectReference
- name
- ReadOnlySpan<Byte>
- signature
- ReadOnlySpan<Byte>
Returns
Applies to
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
Parameters
- type
- JniObjectReference
- name
- String
- signature
- String
Returns
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.