Language

JniPeerMembers.JniStaticFields.SetValue Method

Definition

Overloads

Name Description
SetValue(String, JniObjectReference)

Writes a Java object-reference static field without consuming the supplied reference.

SetValue(String, Boolean)

Writes a Java boolean static field.

SetValue(String, Char)

Writes a Java char static field.

SetValue(String, Double)

Writes a Java double static field.

SetValue(String, Int16)

Writes a Java short static field.

SetValue(String, Int32)

Writes a Java int static field.

SetValue(String, Int64)

Writes a Java long static field.

SetValue(String, SByte)

Writes a Java byte static field.

SetValue(String, Single)

Writes a Java float static field.

SetValue(String, JniObjectReference)

Writes a Java object-reference static field without consuming the supplied reference.

public void SetValue(string encodedMember, Java.Interop.JniObjectReference value);
member this.SetValue : string * Java.Interop.JniObjectReference -> unit

Parameters

encodedMember
String

The Java field name and JNI descriptor separated by a period, such as value.I.

value
JniObjectReference

The JNI reference to store; a zero handle stores Java null.

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

SetValue(String, Boolean)

Writes a Java boolean static field.

public void SetValue(string encodedMember, bool value);
member this.SetValue : string * bool -> unit

Parameters

encodedMember
String

The Java field name and JNI descriptor separated by a period, such as value.I.

value
Boolean

The bool value to store.

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

SetValue(String, Char)

Writes a Java char static field.

public void SetValue(string encodedMember, char value);
member this.SetValue : string * char -> unit

Parameters

encodedMember
String

The Java field name and JNI descriptor separated by a period, such as value.I.

value
Char

The char value to store.

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

SetValue(String, Double)

Writes a Java double static field.

public void SetValue(string encodedMember, double value);
member this.SetValue : string * double -> unit

Parameters

encodedMember
String

The Java field name and JNI descriptor separated by a period, such as value.I.

value
Double

The double value to store.

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

SetValue(String, Int16)

Writes a Java short static field.

public void SetValue(string encodedMember, short value);
member this.SetValue : string * int16 -> unit

Parameters

encodedMember
String

The Java field name and JNI descriptor separated by a period, such as value.I.

value
Int16

The short value to store.

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

SetValue(String, Int32)

Writes a Java int static field.

public void SetValue(string encodedMember, int value);
member this.SetValue : string * int -> unit

Parameters

encodedMember
String

The Java field name and JNI descriptor separated by a period, such as value.I.

value
Int32

The int value to store.

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

SetValue(String, Int64)

Writes a Java long static field.

public void SetValue(string encodedMember, long value);
member this.SetValue : string * int64 -> unit

Parameters

encodedMember
String

The Java field name and JNI descriptor separated by a period, such as value.I.

value
Int64

The long value to store.

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

SetValue(String, SByte)

Writes a Java byte static field.

public void SetValue(string encodedMember, sbyte value);
member this.SetValue : string * sbyte -> unit

Parameters

encodedMember
String

The Java field name and JNI descriptor separated by a period, such as value.I.

value
SByte

The sbyte value to store.

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

SetValue(String, Single)

Writes a Java float static field.

public void SetValue(string encodedMember, float value);
member this.SetValue : string * single -> unit

Parameters

encodedMember
String

The Java field name and JNI descriptor separated by a period, such as value.I.

value
Single

The float value to store.

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