Visual Basic (Declaration) | |
---|---|
Sub Publish (Of TEventType As DelegateEventBase, TPayload)( _ ByVal payload As TPayload _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As IEventAggregator Dim payload As TPayload instance.Publish(Of TEventType, TPayload)(payload) |
C# | |
---|---|
void Publish<TEventType,TPayload>( TPayload payload )where TEventType: DelegateEventBase |
Managed Extensions for C++ | |
---|---|
void Publish<TEventType,TPayload>( TPayload* payload ) where TEventType: DelegateEventBase |
C++/CLI | |
---|---|
void Publishgeneric<typename TEventType> generic<typename TPayload> ( TPayload^ payload ) where TEventType: DelegateEventBase |
Parameters
- payload
- Message to pass to the subscribers.
Type Parameters
- TEventType
- TPayload
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