Gemstone Threading Library
Show/Hide TOC

# WeakAction T Class

Provides a weak referenced Action delegate.

## Definition

Namespace: Gemstone.Threading
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.143 -- Release Build+ef9e327cb82df5c84760e141284a59e4d431fe74
C#
View Source Request Example

    public class WeakAction<T> : NullableWeakReference

VB
View Source Request Example

    Public Class WeakAction(Of T)
    	Inherits NullableWeakReference

C++
View Source Request Example

    generic<typename T>
    public ref class WeakAction : public NullableWeakReference

JavaScript
View Source Request Example

    JavaScript does not support generic types or methods.

Inheritance
  Object WeakReference NullableWeakReference WeakActionT

#### Type Parameters

T

  [Missing <typeparam name="T"/> documentation for "T:Gemstone.Threading.WeakAction`1"]

## Remarks

This class will store the information necessary so the callback object will have a weak reference to it. This information is compiled an can be quickly executed without the overhead of using reflection.

## Constructors

WeakActionT | Creates a WeakAction.

## Properties

IsAlive | Gets an indication whether the object referenced by the current NullableWeakReference object has been cleared or garbage collected. (Inherited from NullableWeakReference)
Target | Gets the object (the target) referenced by the current NullableWeakReference object. Set will only accept null. (Inherited from NullableWeakReference)
TrackResurrection | Gets an indication whether the object referenced by the current WeakReference object is tracked after it is finalized. (Inherited from WeakReference)

## Methods

Clear | Clears Action callback target. (Overrides Clear)
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object)
Finalize | Discards the reference to the target represented by the current WeakReference object. (Inherited from WeakReference)
GetHashCode | Serves as the default hash function. (Inherited from Object)
GetObjectData | Populates a SerializationInfo object with all the data needed to serialize the current WeakReference object. (Inherited from WeakReference) Obsolete.
GetType | Gets the Type of the current instance. (Inherited from Object)
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object)
ToString | Returns a string that represents the current object. (Inherited from Object)
TryInvoke | Attempts to invoke the delegate to a weak reference object.

## See Also

#### Reference

Gemstone.Threading Namespace