Object 类

定义

Object 是类层次结构的根。

[Android.Runtime.Register("java/lang/Object", DoNotGenerateAcw=true)]
[System.Serializable]
public class Object : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("java/lang/Object", DoNotGenerateAcw=true)>]
[<System.Serializable>]
type Object = class
    interface IDisposable
    interface IJavaObject
    interface IJavaPeerable
继承
Object
派生
属性
实现

注解

Object 是类层次结构的根。 每个类都具有 Object 作为超类。 所有对象(包括数组)都实现此类的方法。

在 1.0 中添加。

java.lang.ObjectJava 文档。

此页面的某些部分是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的条款使用。

构造函数

Object()

构造一个新的 对象。

Object(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

属性

Class

返回此 Object的运行时类。

Handle

基础 Android 实例的句柄。

JniIdentityHashCode

Object 是类层次结构的根。

JniPeerMembers

Object 是类层次结构的根。

PeerReference

Object 是类层次结构的根。

ThresholdClass

此 API 支持 Mono for Android 基础结构,不应直接从代码中使用。

ThresholdType

此 API 支持 Mono for Android 基础结构,不应直接从代码中使用。

方法

Clone()

创建并返回此对象的副本。

Dispose()

Object 是类层次结构的根。

Dispose(Boolean)

Object 是类层次结构的根。

Equals(Object)

指示某个其他对象是否“等于”此对象。

Finalize()

Object 是类层次结构的根。

FromArray<T>(T[])

Object 是类层次结构的根。

GetHashCode()

返回对象的哈希代码值。

GetObject<T>(IntPtr, IntPtr, JniHandleOwnership)

Object 是类层次结构的根。

GetObject<T>(IntPtr, JniHandleOwnership)

将 JNI 对象引用包装到完全类型化实现中 IJavaObject

JavaFinalize()

当垃圾回收确定不再引用对象时,由垃圾回收器对对象调用。

Notify()

唤醒正在等待此对象的监视器的单个线程。

NotifyAll()

唤醒正在等待此对象的监视器的所有线程。

SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

ToArray<T>()

Object 是类层次结构的根。

ToString()

返回对象的字符串表示形式。

UnregisterFromRuntime()

Object 是类层次结构的根。

Wait()

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>。<>

Wait(Int64)

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>,或直到经过一定数量的实时。<>

Wait(Int64, Int32)

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>,或直到经过一定数量的实时。<>

运算符

Explicit(Object to Boolean)

Object 是类层次结构的根。

Explicit(Object to Boolean[])

Object 是类层次结构的根。

Explicit(Object to Byte)
已过时.

Object 是类层次结构的根。

Explicit(Object to Byte[])

Object 是类层次结构的根。

Explicit(Object to Char)

Object 是类层次结构的根。

Explicit(Object to Char[])

Object 是类层次结构的根。

Explicit(Object to Double)

Object 是类层次结构的根。

Explicit(Object to Double[])

Object 是类层次结构的根。

Explicit(Object to Int32)

Object 是类层次结构的根。

Explicit(Object to Int32[])

Object 是类层次结构的根。

Explicit(Object to Int64)

Object 是类层次结构的根。

Explicit(Object to Int64[])

Object 是类层次结构的根。

Explicit(Object to Object[])

Object 是类层次结构的根。

Explicit(Object to SByte)

Object 是类层次结构的根。

Explicit(Object to Single)

Object 是类层次结构的根。

Explicit(Object to Single[])

Object 是类层次结构的根。

Explicit(Object to String)

Object 是类层次结构的根。

Explicit(Object to String[])

Object 是类层次结构的根。

Explicit(Object to UInt32)
已过时.

Object 是类层次结构的根。

Explicit(Object to UInt64)
已过时.

Object 是类层次结构的根。

Implicit(Boolean to Object)

Object 是类层次结构的根。

Implicit(Boolean[] to Object)

Object 是类层次结构的根。

Implicit(Byte to Object)
已过时.

Object 是类层次结构的根。

Implicit(Byte[] to Object)

Object 是类层次结构的根。

Implicit(Char to Object)

Object 是类层次结构的根。

Implicit(Char[] to Object)

Object 是类层次结构的根。

Implicit(Double to Object)

Object 是类层次结构的根。

Implicit(Double[] to Object)

Object 是类层次结构的根。

Implicit(Int32 to Object)

Object 是类层次结构的根。

Implicit(Int32[] to Object)

Object 是类层次结构的根。

Implicit(Int64 to Object)

Object 是类层次结构的根。

Implicit(Int64[] to Object)

Object 是类层次结构的根。

Implicit(Object[] to Object)

Object 是类层次结构的根。

Implicit(SByte to Object)

Object 是类层次结构的根。

Implicit(Single to Object)

Object 是类层次结构的根。

Implicit(Single[] to Object)

Object 是类层次结构的根。

Implicit(String to Object)

Object 是类层次结构的根。

Implicit(String[] to Object)

Object 是类层次结构的根。

Implicit(UInt32 to Object)
已过时.

Object 是类层次结构的根。

Implicit(UInt64 to Object)
已过时.

Object 是类层次结构的根。

显式接口实现

IJavaPeerable.Disposed()

Object 是类层次结构的根。

IJavaPeerable.DisposeUnlessReferenced()

Object 是类层次结构的根。

IJavaPeerable.Finalized()

Object 是类层次结构的根。

IJavaPeerable.JniManagedPeerState

Object 是类层次结构的根。

IJavaPeerable.SetJniIdentityHashCode(Int32)

Object 是类层次结构的根。

IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

Object 是类层次结构的根。

IJavaPeerable.SetPeerReference(JniObjectReference)

Object 是类层次结构的根。

扩展方法

JavaCast<TResult>(IJavaObject)

执行 Android 运行时检查的类型转换。

JavaCast<TResult>(IJavaObject)

Object 是类层次结构的根。

GetJniTypeName(IJavaPeerable)

Object 是类层次结构的根。

适用于