Field Class
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.
A Field
provides information about, and dynamic access to, a
single field of a class or an interface.
[Android.Runtime.Register("java/lang/reflect/Field", DoNotGenerateAcw=true)]
public sealed class Field : Java.Lang.Reflect.AccessibleObject, IDisposable, Java.Interop.IJavaPeerable, Java.Lang.Reflect.IMember
[<Android.Runtime.Register("java/lang/reflect/Field", DoNotGenerateAcw=true)>]
type Field = class
inherit AccessibleObject
interface IMember
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Inheritance
- Attributes
- Implements
Remarks
A Field
provides information about, and dynamic access to, a single field of a class or an interface. The reflected field may be a class (static) field or an instance field.
A Field
permits widening conversions to occur during a get or set access operation, but throws an IllegalArgumentException
if a narrowing conversion would occur.
Java documentation for java.lang.reflect.Field
.
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.
Properties
Accessible |
Get the value of the |
Class |
Returns the runtime class of this |
DeclaringClass |
Returns the |
GenericType |
Returns a |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
IsEnumConstant |
Returns |
IsSynthetic |
Returns |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
Modifiers |
Returns the Java language modifiers for the field represented
by this |
Name |
Returns the name of the field represented by this |
PeerReference | (Inherited from Object) |
ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. (Inherited from AccessibleObject) |
ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. (Inherited from AccessibleObject) |
Type |
Returns a |
Methods
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
Get(Object) |
Returns the value of the field represented by this |
GetAnnotation(Class) |
Added in 1. |
GetAnnotations() |
Added in 1. (Inherited from AccessibleObject) |
GetAnnotationsByType(Class) |
Added in 1. (Inherited from AccessibleObject) |
GetBoolean(Object) |
Gets the value of a static or instance |
GetByte(Object) |
Gets the value of a static or instance |
GetChar(Object) |
Gets the value of a static or instance field of type
|
GetDeclaredAnnotation(Class) |
Added in 1. (Inherited from AccessibleObject) |
GetDeclaredAnnotations() |
Added in 1. (Inherited from AccessibleObject) |
GetDeclaredAnnotationsByType(Class) |
Added in 1. (Inherited from AccessibleObject) |
GetDouble(Object) |
Gets the value of a static or instance field of type
|
GetFloat(Object) |
Gets the value of a static or instance field of type
|
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetInt(Object) |
Gets the value of a static or instance field of type
|
GetLong(Object) |
Gets the value of a static or instance field of type
|
GetShort(Object) |
Gets the value of a static or instance field of type
|
IsAnnotationPresent(Class) | |
JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
Set(Object, Object) |
Sets the field represented by this |
SetBoolean(Object, Boolean) |
Sets the value of a field as a |
SetByte(Object, SByte) |
Sets the value of a field as a |
SetChar(Object, Char) |
Sets the value of a field as a |
SetDouble(Object, Double) |
Sets the value of a field as a |
SetFloat(Object, Single) |
Sets the value of a field as a |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
SetInt(Object, Int32) |
Sets the value of a field as an |
SetLong(Object, Int64) |
Sets the value of a field as a |
SetShort(Object, Int16) |
Sets the value of a field as a |
ToArray<T>() | (Inherited from Object) |
ToGenericString() |
Returns a string describing this |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
UnregisterFromRuntime() | (Inherited from Object) |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |