Intersoft ClientUI Documentation
DelegateReference Constructor



The original System.Delegate to create a reference for.
If false the class will create a weak reference to the delegate, allowing it to be garbage collected. Otherwise it will keep a strong reference to the target.
Initializes a new instance of DelegateReference.
Syntax
Public Function New( _
   ByVal delegate As Delegate, _
   ByVal keepReferenceAlive As Boolean _
)
Dim delegate As Delegate
Dim keepReferenceAlive As Boolean
 
Dim instance As New DelegateReference(delegate, keepReferenceAlive)
public DelegateReference( 
   Delegate delegate,
   bool keepReferenceAlive
)
public:
DelegateReference( 
   Delegate^ delegate,
   bool keepReferenceAlive
)

Parameters

delegate
The original System.Delegate to create a reference for.
keepReferenceAlive
If false the class will create a weak reference to the delegate, allowing it to be garbage collected. Otherwise it will keep a strong reference to the target.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionIf the passed delegate is not assignable to System.Delegate.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DelegateReference Class
DelegateReference Members

Send Feedback