Language

JniType.GetStaticField Method

Definition

Overloads

Name Description
GetStaticField(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Looks up a static-field identifier for this Java class.

GetStaticField(String, String)

Looks up a static-field identifier for this Java class.

GetStaticField(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Looks up a static-field identifier for this Java class.

public Java.Interop.JniFieldInfo GetStaticField(ReadOnlySpan<byte> name, ReadOnlySpan<byte> signature);
member this.GetStaticField : 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 static-field information.

Remarks

JNI reads the name and descriptor as null-terminated strings. No managed string conversion is performed.

Applies to

GetStaticField(String, String)

Looks up a static-field identifier for this Java class.

public Java.Interop.JniFieldInfo GetStaticField(string name, string signature);
member this.GetStaticField : string * string -> Java.Interop.JniFieldInfo

Parameters

name
String

The Java field name.

signature
String

The JNI field descriptor.

Returns

The JNI static-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.

Applies to