Aracılığıyla paylaş


Field.GetByte(Object) Method

Definition

Gets the value of a static or instance byte field.

[Android.Runtime.Register("getByte", "(Ljava/lang/Object;)B", "")]
public sbyte GetByte (Java.Lang.Object? obj);
[<Android.Runtime.Register("getByte", "(Ljava/lang/Object;)B", "")>]
member this.GetByte : Java.Lang.Object -> sbyte

Parameters

obj
Object

the object to extract the byte value from

Returns

the value of the byte field

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

Gets the value of a static or instance byte field.

Java documentation for java.lang.reflect.Field.getByte(java.lang.Object).

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