WeakDelegate Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Provides methods for combining and removing "weak" delegates.
Inheritance Hierarchy
System. . :: . .Object
Microsoft.SPOT..::..WeakDelegate
Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.Native (in Microsoft.SPOT.Native.dll)
Syntax
'Declaration
Public NotInheritable Class WeakDelegate
public static class WeakDelegate
public ref class WeakDelegate abstract sealed
[<AbstractClass>]
[<Sealed>]
type WeakDelegate = class end
public final class WeakDelegate
The WeakDelegate type exposes the following members.
Methods
Name | Description | |
---|---|---|
Combine | Concatenates the invocation lists of two multicast (combinable) delegates. | |
Remove | Removes the invocation list of a specified delegate from the invocation list of another specified delegate. |
Top
Remarks
When instances of the WeakDelegate class are created, the object references in the delegate list are treated like WeakReference objects. This means that these object references are prone to garbage collection even if they are still targets in the list of delegates. When such object references are collected as garbage, they are automatically removed from the list of delegates.
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.