InfoConnect API Guide
Attachmate.Reflection.UserControl.Wpf.IbmHosts Namespace / TerminalInitializedEventHandler Delegate
The source of the event.
An AsyncCompletedEventArgs type that contains an Error property that indicates which error (if any) occurred during the InitInstance call.
ExampleExample


In This Topic
    TerminalInitializedEventHandler Delegate
    In This Topic
    Event handler delegate for session started event.
    Syntax
    'Declaration
     
    
    Public Delegate Sub TerminalInitializedEventHandler( _
       ByVal sender As Object, _
       ByVal e As AsyncCompletedEventArgs _
    ) 
    'Usage
     
    
    Dim instance As New TerminalInitializedEventHandler(AddressOf HandlerMethod)
    public delegate void TerminalInitializedEventHandler( 
       object sender,
       AsyncCompletedEventArgs e
    )

    Parameters

    sender
    The source of the event.
    e
    An AsyncCompletedEventArgs type that contains an Error property that indicates which error (if any) occurred during the InitInstance call.
    Remarks
    Use this event handler to check for errors that may have occurred during terminal initialization.
    Example
    Check for errors that may have occurred during terminal initialization
    private void IbmTerminalControl1_TerminalInitializedEvent(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
    {
        // Check if error occurred during the terminal initialization
        if (e.Error != null)
        {
            MessageBox.Show("Error during terminal initialization step: " + e.Error); return;
        }
     
    }
    See Also