Share via


ExtendedWeakReference Class

Represents an extended weak reference, which references an object but still leaves it prone to garbage collection.

Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.Native (in microsoft.spot.native.dll)

Syntax

public class ExtendedWeakReference : WeakReference

Remarks

When the object referred to by the extended weak references has no live references to it, it will be stored in a serialized format. Thus, the target of an ExtendedWeakRefernence object must be serializable. You use a selector and an identifier to identify a group of one or more weak references. The selector should be a type known only to the user of the ExtendedWeakReference object. Note that you can use the same selector with multiple IDs to create groups of ExtendedWeakReference objects.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

ExtendedWeakReference Members
Microsoft.SPOT Namespace