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
Public method ExtendedWeakReference Initializes a new instance of the ExtendedWeakReference class, referencing a specified object.

Top

Properties

  Name Description
Public property Flags Gets the flags specifying the states from which the current weak reference should be recoverable.
Public property Id Gets the ID associated with the current weak reference.
Public property IsAlive Gets an indication whether the object referenced by the current WeakReference object has been garbage collected. (Inherited from WeakReference.)
Public property Priority Gets or sets the priority level for the current weak reference.
Public property Selector Gets the selector for the current weak reference.
Public property Target Gets or sets the object (the target) referenced by the current WeakReference object. (Inherited from WeakReference.)

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method PushBackIntoRecoverList Flags an ExtendedWeakReference object as a candidate for recovery after the device reboots or powers down and restarts.
Public methodStatic member Recover Recovers a specific ExtendedWeakReference object.
Public methodStatic member RecoverOrCreate Attempts to recover a specific ExtendedWeakReference object, and creates a new instance of this class if the recovery attempt fails.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member c_SurviveBoot Contains a flag specifying that the current weak reference will be recoverable after the device reboots.
Public fieldStatic member 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.

See Also

Reference

Microsoft.SPOT Namespace