| Visual Basic (Declaration) | |
|---|---|
Function GetEvent(Of TEventType As DelegateEventBase)() As TEventType  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
Dim instance As IEventAggregator Dim value As TEventType value = instance.GetEvent(Of TEventType)()  | |
| C# | |
|---|---|
TEventType GetEvent<TEventType>()where TEventType: DelegateEventBase  | |
| Delphi | |
|---|---|
function GetEvent(): TEventType;  | |
| JScript | |
|---|---|
function GetEvent() : TEventType;  | |
| Managed Extensions for C++ | |
|---|---|
TEventType* GetEvent<TEventType>(); where TEventType: DelegateEventBase  | |
| C++/CLI | |
|---|---|
TEventType^ GetEventgeneric<typename TEventType> (); where TEventType: DelegateEventBase  | |
Type Parameters
- TEventType
 - The type of event to get.
 
Return Value
An instance of an event object of type TEventType.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