MediaProvider.RaiseEvent<T> Method
Raises the specified event.
Namespace: Microsoft.Rtc.Collaboration.ComponentModel
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Protected Sub RaiseEvent(Of T As EventArgs) ( _
signalingContext As CallDialogContext, _
eventHandler As EventHandler(Of T), _
sender As Object, _
eventArgs As T _
)
'Usage
Dim signalingContext As CallDialogContext
Dim eventHandler As EventHandler(Of T)
Dim sender As Object
Dim eventArgs As T
Me.RaiseEvent(signalingContext, eventHandler, _
sender, eventArgs)
protected void RaiseEvent<T>(
CallDialogContext signalingContext,
EventHandler<T> eventHandler,
Object sender,
T eventArgs
)
where T : EventArgs
Type Parameters
- T
The type of the event.
Parameters
- signalingContext
Type: Microsoft.Rtc.Collaboration.CallDialogContext
The signaling context of the call.
- eventHandler
Type: System.EventHandler<T>
The event handler for the event to be raised.
- sender
Type: System.Object
The event sender.
- eventArgs
Type: T
Event arguments.
Remarks
This method is a helper function that can be used to raise events.