TEventType
TPayload
Intersoft ClientUI Documentation
Unsubscribe<TEventType,TPayload> Method
See Also  Send Feedback
Intersoft.Client.Framework Namespace > EventAggregator Class : Unsubscribe<TEventType,TPayload> Method






action
Removes the first subscriber matching from the subscribers' list.

Syntax

Visual Basic (Declaration) 
Public Sub Unsubscribe
     (Of TEventType As DelegateEventBase,
     TPayload)( _
   ByVal action As Action(Of TPayload) _
) 
Visual Basic (Usage)Copy Code
Dim instance As EventAggregator
Dim action As Action(Of TPayload)
 
instance.Unsubscribe(Of TEventType, TPayload)(action)
C# 
public void Unsubscribe<TEventType,TPayload>( 
   Action<TPayload> action
)where TEventType: DelegateEventBase
Delphi 
public procedure Unsubscribe( 
    action: Action
); 
JScript 
public function Unsubscribe( 
   action : Action
);
Managed Extensions for C++ 
public: void Unsubscribe<TEventType,TPayload>( 
   Action<TPayload*>* action
) where TEventType: DelegateEventBase
C++/CLI 
public:
void Unsubscribegeneric<typename TEventType>
generic<typename TPayload>
( 
   Action<TPayload^>^ action
) where TEventType: DelegateEventBase

Parameters

action

Type Parameters

TEventType
TPayload

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.