TPayload
The type of message that will be passed to the subscribers.
Intersoft ClientUI Documentation
DelegateEvent<TPayload> Class
Members  See Also  Send Feedback
Intersoft.Client.Framework Namespace : DelegateEvent<TPayload> Class






Defines a generic class that manages publication and subscription to events.

Object Model

DelegateEvent<TPayload> Class

Syntax

Visual Basic (Declaration) 
Public Class DelegateEvent(Of TPayload) 
   Inherits DelegateEventBase
Visual Basic (Usage)Copy Code
Dim instance As DelegateEvent(Of TPayload)
C# 
public class DelegateEvent<TPayload> : DelegateEventBase 
Delphi 
public class DelegateEvent = class(DelegateEventBase)
JScript 
JScript does not support Generics.
Managed Extensions for C++ 
public __gc class DelegateEvent<TPayload> : public DelegateEventBase 
C++/CLI 
generic<typename TPayload>
public ref class DelegateEvent : public DelegateEventBase 

Type Parameters

TPayload
The type of message that will be passed to the subscribers.

Remarks

The DelegateEvent<TPayLoad> provides an easy way to define a new event type based on certain TPayLoad type.

C# Copy Code
public class MailNotificationEvent : DelegateEvent<Mail>   
{
}

To learn more about event aggregator concept and usage, see Event Aggregator Overview.

Inheritance Hierarchy

System.Object
   Intersoft.Client.Framework.DelegateEventBase
      Intersoft.Client.Framework.DelegateEvent<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.