T
IdeaBlade Application Framework
RaiseOnce<T> Method
See Also  Send Feedback
Caliburn.Micro.Extensions Namespace > EventFns Class : RaiseOnce<T> Method



event
The event to be raised.
sender
The object raising the event. This will be the sender.
args
The event arguments.
Raises the given event and then clears all event handlers.

Syntax

Visual Basic (Declaration) 
Public Shared Sub RaiseOnce(Of T As EventArgs)( _
   ByRef event As EventHandler(Of T), _
   ByVal sender As Object, _
   ByVal args As T _
) 
Visual Basic (Usage)Copy Code
Dim event As EventHandler(Of T)
Dim sender As Object
Dim args As T
 
EventFns.RaiseOnce(Of T)(event, sender, args)
C# 
public static void RaiseOnce<T>( 
   ref EventHandler<T> event,
   object sender,
   T args
)where T: EventArgs
C++/CLI 
public:
static void RaiseOncegeneric<typename T>
( 
   EventHandler<T^>^% event,
   Object^ sender,
   T^ args
) where T: EventArgs

Parameters

event
The event to be raised.
sender
The object raising the event. This will be the sender.
args
The event arguments.

Type Parameters

T

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.