JavaObject 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.
Class Object is the root of the class hierarchy.
[Java.Interop.JniTypeSignature("java/lang/Object", GenerateJavaPeer=false)]
[System.Serializable]
public class JavaObject : IDisposable, Java.Interop.IJavaPeerable
[<Java.Interop.JniTypeSignature("java/lang/Object", GenerateJavaPeer=false)>]
[<System.Serializable>]
type JavaObject = class
interface IJavaPeerable
interface IDisposable
- Inheritance
-
JavaObject
- Derived
- Attributes
- Implements
Remarks
Class Object is the root of the class hierarchy. Every class has Object as a superclass. All objects, including arrays, implement the methods of this class.
Java reference for 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.
Constructors
| Name | Description |
|---|---|
| JavaObject() |
Constructs a new object. |
| JavaObject(JniObjectReference, JniObjectReferenceOptions) | |
Fields
| Name | Description |
|---|---|
| InvalidJniObjectReference | |
Properties
| Name | Description |
|---|---|
| JniIdentityHashCode |
Returns the same hash code for the given object as would be returned by the default method hashCode(), whether or not the given object's class overrides hashCode(). |
| JniManagedPeerState | |
| JniPeerMembers | |
| PeerReference | |
Methods
| Name | Description |
|---|---|
| Construct(JniObjectReference, JniObjectReferenceOptions) | |
| Dispose() | |
| Dispose(Boolean) | |
| DisposeUnlessReferenced() | |
| Equals(Object) | |
| Finalize() | |
| GetHashCode() |
Returns a hash code value for the object. |
| SetPeerReference(JniObjectReference, JniObjectReferenceOptions) | |
| ToString() |
Returns a string representation of the object. |
| UnregisterFromRuntime() | |
Explicit Interface Implementations
Extension Methods
| Name | Description |
|---|---|
| GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
| JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |