ExtendedWeakReference Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents an extended weak reference, which references an object but still leaves it prone to garbage collection.
Inheritance Hierarchy
System. . :: . .Object
System. . :: . .WeakReference
Microsoft.SPOT..::..ExtendedWeakReference
Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.Native (in Microsoft.SPOT.Native.dll)
Syntax
'Declaration
Public Class ExtendedWeakReference _
Inherits WeakReference
public class ExtendedWeakReference : WeakReference
public ref class ExtendedWeakReference : public WeakReference
type ExtendedWeakReference =
class
inherit WeakReference
end
public class ExtendedWeakReference extends WeakReference
The ExtendedWeakReference type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ExtendedWeakReference | Initializes a new instance of the ExtendedWeakReference class, referencing a specified object. |
Top
Properties
Name | Description | |
---|---|---|
Flags | Gets the flags specifying the states from which the current weak reference should be recoverable. | |
Id | Gets the ID associated with the current weak reference. | |
IsAlive | Gets an indication whether the object referenced by the current WeakReference object has been garbage collected. (Inherited from WeakReference.) | |
Priority | Gets or sets the priority level for the current weak reference. | |
Selector | Gets the selector for the current weak reference. | |
Target | Gets or sets the object (the target) referenced by the current WeakReference object. (Inherited from WeakReference.) |
Top
Methods
Name | Description | |
---|---|---|
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.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
PushBackIntoRecoverList | Flags an ExtendedWeakReference object as a candidate for recovery after the device reboots or powers down and restarts. | |
Recover | Recovers a specific ExtendedWeakReference object. | |
RecoverOrCreate | Attempts to recover a specific ExtendedWeakReference object, and creates a new instance of this class if the recovery attempt fails. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Fields
Name | Description | |
---|---|---|
c_SurviveBoot | Contains a flag specifying that the current weak reference will be recoverable after the device reboots. | |
c_SurvivePowerdown | Contains a flag specifying that the current weak reference will be recoverable after the device powers down and restarts. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.