RanorexRanorex Documentation
RefCache Class
NamespacesRanorex.CoreRefCache
Provides a (weak reference) cache for remote object references. Should be used in conjunction with InvokeRemotely().
Declaration Syntax
C#Visual BasicVisual C++
public class RefCache
Public Class RefCache
public ref class RefCache
Members
All MembersConstructorsMethods



IconMemberDescription
RefCache()()()
Initializes a new instance of the RefCache class

Cleanup()()()
Cleans up all cache entries which have been garbage collected. This does not invalidate any RemoteRef objects whose target have not been GC'ed.

Clear()()()
Clears all entries from the cache. This results in invalidating all RemoteRef objects.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetObject<(Of <(T>)>)(RemoteRef)
Gets the object referred to by the given remote reference. If the object does not exist, or has been garbage collected, the methods returns null.

GetReference(Object)
Gets a serializable, opaque remote reference for a given object.

GetType()()()
Gets the type of the current instance.
(Inherited from Object.)
InvalidateReference(RemoteRef)
Invalidates the remote reference and thereby releases resources for the reference in the cache.

MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ToString()()()
Returns a string that represents the current object.
(Inherited from Object.)
Inheritance Hierarchy
Object
RefCache

Assembly: Ranorex.Core (Module: Ranorex.Core) Version: 4.0.3.22982 (4.0.3.22982)