Aracılığıyla paylaş


Field.SetShort(Object, Int16) Method

Definition

Sets the value of a field as a short on the specified object.

[Android.Runtime.Register("setShort", "(Ljava/lang/Object;S)V", "")]
public void SetShort (Java.Lang.Object? obj, short s);
[<Android.Runtime.Register("setShort", "(Ljava/lang/Object;S)V", "")>]
member this.SetShort : Java.Lang.Object * int16 -> unit

Parameters

obj
Object

the object whose field should be modified

s
Int16

the new value for the field of obj being modified

Attributes

Exceptions

if the object is null and the field is non-static

if the object is not compatible with the declaring class

if this field is not accessible

Remarks

Sets the value of a field as a short on the specified object. This method is equivalent to set(obj, sObj), where sObj is a Short object and sObj.shortValue() == s.

Java documentation for java.lang.reflect.Field.setShort(java.lang.Object, short).

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