共用方式為


_ApplicationEvents_XDocumentBeforeCloseEventHandler 委派

此委派僅限內部使用,不得從您的程式碼內直接使用。

**命名空間:**Microsoft.Office.Interop.InfoPath
**組件:**Microsoft.Office.Interop.InfoPath (於 microsoft.office.interop.infopath.dll 中)

語法

'宣告
<ComVisibleAttribute(False)> _
<TypeLibTypeAttribute(16)> _
Public Delegate Sub _ApplicationEvents_XDocumentBeforeCloseEventHandler ( _
    <InAttribute> pDocument As _XDocument, _
    <InAttribute> <OutAttribute> ByRef pfCancel As Boolean _
)
'用途
Dim instance As New _ApplicationEvents_XDocumentBeforeCloseEventHandler(AddressOf HandlerMethod)
[ComVisibleAttribute(false)] 
[TypeLibTypeAttribute(16)] 
public delegate void _ApplicationEvents_XDocumentBeforeCloseEventHandler (
    [InAttribute] _XDocument pDocument,
    [InAttribute] out bool pfCancel
)

參數

  • pDocument
  • pfCancel

請參閱

參考

Microsoft.Office.Interop.InfoPath 命名空間