ArcFM Engine Developer Guide
GetEvent<TEventType> Method


The type of event to get. This must inherit from Microsoft.Practices.Composite.Events.EventBase.
Gets the single instance of the event managed by this EventAggregator. Multiple calls to this method with the same TEventType returns the same event instance.
Syntax
'Declaration
 
Public Shared Function GetEvent(Of TEventType As EventBase)() As TEventType
'Usage
 
Dim value As TEventType
 
value = EventAggregator.GetEvent(Of TEventType)()
public static TEventType GetEvent<TEventType>()
where TEventType: EventBase

Type Parameters

TEventType
The type of event to get. This must inherit from Microsoft.Practices.Composite.Events.EventBase.

Return Value

A singleton instance of an event object of type TEventType.
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

EventAggregator Class
EventAggregator Members

 

 


Send Comment