ApplicationEvents2_Event.add_DocumentBeforeClose Method 

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Sub Sub1(Doc As Document, _
    Cancel As Boolean)
End Sub
Dim  As New ApplicationEvents2_DocumentBeforeCloseEventHandler(AddressOf Sub1)
Dim applicationEvents2_Event1 As ApplicationEvents2_Event
applicationEvents2_Event1.add_DocumentBeforeClose()

Syntax

Sub add_DocumentBeforeClose( _
    ByVal  As ApplicationEvents2_DocumentBeforeCloseEventHandler _
)
void add_DocumentBeforeClose(
    ApplicationEvents2_DocumentBeforeCloseEventHandler 
);
public: Void add_DocumentBeforeClose(
    ApplicationEvents2_DocumentBeforeCloseEventHandler^ 
);
public void add_DocumentBeforeClose(
    ApplicationEvents2_DocumentBeforeCloseEventHandler 
);
function add_DocumentBeforeClose(
      : ApplicationEvents2_DocumentBeforeCloseEventHandler
);

Parameters

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

ApplicationEvents2_Event Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

ApplicationEvents2_Event Members