[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.ObjectReference

Class ObjectReference

Namespace
GrapeCity.Documents.DX
Assembly
GcDocs.DX.Windows.dll

Contains information about a tracked COM object.

public class ObjectReference
Inheritance
object
ObjectReference
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

ObjectReference(DateTime, ComObject, string)

Initializes a new instance of the ObjectReference class.

public ObjectReference(DateTime creationTime, ComObject comObject, string stackTrace)

Parameters

creationTime System.DateTime

The creation time.

comObject ComObject

The com object to track.

stackTrace string

The stack trace.

Properties

CreationTime

Gets the time the object was created.

public DateTime CreationTime { get; }

Property Value

System.DateTime

The creation time.

IsAlive

Gets a value indicating whether the tracked object is alive.

public bool IsAlive { get; }

Property Value

bool

true if tracked object is alive; otherwise, false.

Object

Gets a weak reference to the tracked object.

public WeakReference Object { get; }

Property Value

System.WeakReference

The weak reference to the tracked object.

StackTrace

Gets the stack trace when the track object was created.

public string StackTrace { get; }

Property Value

string

The stack trace.

Methods

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.