JniPeerMembers.JniInstanceFields.SetValue 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 |
|---|---|
| SetValue(String, IJavaPeerable, JniObjectReference) |
Writes a Java object-reference instance field without consuming the supplied reference. |
| SetValue(String, IJavaPeerable, Boolean) |
Writes a Java boolean instance field. |
| SetValue(String, IJavaPeerable, Char) |
Writes a Java char instance field. |
| SetValue(String, IJavaPeerable, Double) |
Writes a Java double instance field. |
| SetValue(String, IJavaPeerable, Int16) |
Writes a Java short instance field. |
| SetValue(String, IJavaPeerable, Int32) |
Writes a Java int instance field. |
| SetValue(String, IJavaPeerable, Int64) |
Writes a Java long instance field. |
| SetValue(String, IJavaPeerable, SByte) |
Writes a Java byte instance field. |
| SetValue(String, IJavaPeerable, Single) |
Writes a Java float instance field. |
SetValue(String, IJavaPeerable, JniObjectReference)
Writes a Java object-reference instance field without consuming the supplied reference.
public void SetValue(string encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniObjectReference value);
member this.SetValue : string * Java.Interop.IJavaPeerable * Java.Interop.JniObjectReference -> unit
Parameters
- encodedMember
- String
The Java field name and JNI descriptor separated by a period, such as value.I.
- self
- IJavaPeerable
The managed peer whose Java instance field is accessed.
- 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, IJavaPeerable, Boolean)
Writes a Java boolean instance field.
public void SetValue(string encodedMember, Java.Interop.IJavaPeerable self, bool value);
member this.SetValue : string * Java.Interop.IJavaPeerable * bool -> unit
Parameters
- encodedMember
- String
The Java field name and JNI descriptor separated by a period, such as value.I.
- self
- IJavaPeerable
The managed peer whose Java instance field is accessed.
- 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, IJavaPeerable, Char)
Writes a Java char instance field.
public void SetValue(string encodedMember, Java.Interop.IJavaPeerable self, char value);
member this.SetValue : string * Java.Interop.IJavaPeerable * char -> unit
Parameters
- encodedMember
- String
The Java field name and JNI descriptor separated by a period, such as value.I.
- self
- IJavaPeerable
The managed peer whose Java instance field is accessed.
- 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, IJavaPeerable, Double)
Writes a Java double instance field.
public void SetValue(string encodedMember, Java.Interop.IJavaPeerable self, double value);
member this.SetValue : string * Java.Interop.IJavaPeerable * double -> unit
Parameters
- encodedMember
- String
The Java field name and JNI descriptor separated by a period, such as value.I.
- self
- IJavaPeerable
The managed peer whose Java instance field is accessed.
- 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, IJavaPeerable, Int16)
Writes a Java short instance field.
public void SetValue(string encodedMember, Java.Interop.IJavaPeerable self, short value);
member this.SetValue : string * Java.Interop.IJavaPeerable * int16 -> unit
Parameters
- encodedMember
- String
The Java field name and JNI descriptor separated by a period, such as value.I.
- self
- IJavaPeerable
The managed peer whose Java instance field is accessed.
- 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, IJavaPeerable, Int32)
Writes a Java int instance field.
public void SetValue(string encodedMember, Java.Interop.IJavaPeerable self, int value);
member this.SetValue : string * Java.Interop.IJavaPeerable * int -> unit
Parameters
- encodedMember
- String
The Java field name and JNI descriptor separated by a period, such as value.I.
- self
- IJavaPeerable
The managed peer whose Java instance field is accessed.
- 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, IJavaPeerable, Int64)
Writes a Java long instance field.
public void SetValue(string encodedMember, Java.Interop.IJavaPeerable self, long value);
member this.SetValue : string * Java.Interop.IJavaPeerable * int64 -> unit
Parameters
- encodedMember
- String
The Java field name and JNI descriptor separated by a period, such as value.I.
- self
- IJavaPeerable
The managed peer whose Java instance field is accessed.
- 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, IJavaPeerable, SByte)
Writes a Java byte instance field.
public void SetValue(string encodedMember, Java.Interop.IJavaPeerable self, sbyte value);
member this.SetValue : string * Java.Interop.IJavaPeerable * sbyte -> unit
Parameters
- encodedMember
- String
The Java field name and JNI descriptor separated by a period, such as value.I.
- self
- IJavaPeerable
The managed peer whose Java instance field is accessed.
- 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, IJavaPeerable, Single)
Writes a Java float instance field.
public void SetValue(string encodedMember, Java.Interop.IJavaPeerable self, float value);
member this.SetValue : string * Java.Interop.IJavaPeerable * single -> unit
Parameters
- encodedMember
- String
The Java field name and JNI descriptor separated by a period, such as value.I.
- self
- IJavaPeerable
The managed peer whose Java instance field is accessed.
- 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.