Notifies the application that DTMF digit generation has terminated.
Namespace: Traysoft.AddTapiAssembly: Traysoft.AddTapi (in Traysoft.AddTapi.dll) Version: 6.0.0.1110
Syntax public static event TapiGeneratedEventHandler Generated
Public Shared Event Generated As TapiGeneratedEventHandler
public:
static event TapiGeneratedEventHandler^ Generated {
void add (TapiGeneratedEventHandler^ value);
void remove (TapiGeneratedEventHandler^ value);
}
Value
Type:
Traysoft.AddTapiTapiGeneratedEventHandlerRemarks Generated event is used to notify the application that the current digit or tone generation
has terminated. Only one such generation request can be in progress an a given call at any time.
This event is also fired when digit or tone generation is canceled.
Note |
---|
In Windows Forms and WPF applications AddTapi.NET executes the handler of this event on the main thread of the application (the thread that called Initialize(String)).
It is safe to access Windows Forms or WPF controls from the event handler without using Invoke mechanism.
|
Examples The following code shows how to handle Generated event.
TapiApp.Initialize("MyApp");
TapiApp.Generated += OnGenerated;
...
void OnGenerated(object sender, TapiGeneratedEventArgs args)
{
Console.WriteLine("Digit generation terminated on line {0}: {1}", args.Line.Name, args.Mode);
}
TapiApp.Initialize("MyApp")
AddHandler TapiApp.Generated, AddressOf OnGenerated
...
Private Sub OnGenerated(ByVal sender As Object, ByVal args As TapiGeneratedEventArgs)
Console.WriteLine("Digit generation terminated on line {0}: {1}", args.Line.Name, args.Mode)
End Sub
No code example is currently available or this language may not be supported.
See Also