AppEvents_WorkbookAfterXmlImportEventHandler Delegate 

A Delegate type used to add an event handler for the WorkbookAfterXmlImport event. The WorkbookAfterXmlImport event occurs after an existing XML data connection is refreshed, or new XML data is imported into any open Microsoft Excel workbook.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

Usage

Sub Sub1(Wb As Workbook, _
    Map As XmlMap, _
    IsRefresh As Boolean, _
    Result As XlXmlImportResult)
End Sub
Dim appEvents_WorkbookAfterXmlImportEventHandler1 As New AppEvents_WorkbookAfterXmlImportEventHandler(AddressOf Sub1)

Syntax

Public Delegate Sub AppEvents_WorkbookAfterXmlImportEventHandler( _
    <InAttribute()> ByVal Wb As Workbook, _
    <InAttribute()> ByVal Map As XmlMap, _
    <InAttribute()> ByVal IsRefresh As Boolean, _
    <InAttribute()> ByVal Result As XlXmlImportResult _
)
public delegate void AppEvents_WorkbookAfterXmlImportEventHandler(
    [In] Workbook Wb, 
    [In] XmlMap Map, 
    [In] bool IsRefresh, 
    [In] XlXmlImportResult Result
);
public delegate Void AppEvents_WorkbookAfterXmlImportEventHandler(
    Workbook^ Wb, 
    XmlMap^ Map, 
    Boolean IsRefresh, 
    XlXmlImportResult^ Result
);
public delegate void AppEvents_WorkbookAfterXmlImportEventHandler(
    /*in*/Workbook Wb, 
    /*in*/XmlMap Map, 
    /*in*/boolean IsRefresh, 
    /*in*/XlXmlImportResult Result
);
In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.

Parameters

  • Wb
    Required Workbook. The target workbook.
  • Map
    Required XmlMap. The XML map that was used to import data.
  • IsRefresh
    Required Boolean. True if the event was triggered by refreshing an existing connection to XML data, False if a new mapping was created.
  • Result
    Required XlXmlImportResult. Indicates the results of the refresh or import operation.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Excel Namespace