InfoConnect API Guide
Attachmate.Reflection.Framework Namespace / Application Class / ApplicationClosing Event


In This Topic
    ApplicationClosing Event
    In This Topic
    The event is raised when the InfoConnect application is about to close.
    Syntax
    'Declaration
     
    
    <SuppressMessageAttribute("Microsoft.Design", "CA1009:DeclareEventHandlersCorrectly")>
    Public Event ApplicationClosing As ApplicationClosingEventHandler
    'Usage
     
    
    Dim instance As Application
    Dim handler As ApplicationClosingEventHandler
     
    AddHandler instance.ApplicationClosing, handler
    [SuppressMessage("Microsoft.Design", "CA1009:DeclareEventHandlersCorrectly")]
    public event ApplicationClosingEventHandler ApplicationClosing
    Event Data

    The event handler receives an argument of type ApplicationClosingEventArgs containing data related to this event. The following ApplicationClosingEventArgs properties provide information specific to this event.

    PropertyDescription
    A Boolean value to indicate whether to cancel the event. Set Cancel to true to cancel the event.  
    Remarks
    The event handler can cancel the closing by setting the cancel property of the event argument to false.
    See Also