DocumentEventsClass.DocumentOpening Event

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

Occurs before a document is opened.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Public Overridable Event DocumentOpening As _dispDocumentEvents_DocumentOpeningEventHandler
public virtual event _dispDocumentEvents_DocumentOpeningEventHandler DocumentOpening
public:
virtual  event _dispDocumentEvents_DocumentOpeningEventHandler^ DocumentOpening {
    void add (_dispDocumentEvents_DocumentOpeningEventHandler^ value);
    void remove (_dispDocumentEvents_DocumentOpeningEventHandler^ value);
}
abstract DocumentOpening : IEvent<_dispDocumentEvents_DocumentOpeningEventHandler,
    EventArgs>
override DocumentOpening : IEvent<_dispDocumentEvents_DocumentOpeningEventHandler,
    EventArgs>
JScript does not support events.

Implements

_dispDocumentEvents_Event.DocumentOpening

Examples

Public Sub DocumentEvents_DocumentOpening(ByVal DocumentPath As String, _
    ByVal [ReadOnly] As Boolean) Handles DocumentEvents.DocumentOpening
        MsgBox("test")
End Sub

.NET Framework Security

See Also

Reference

DocumentEventsClass Class

EnvDTE Namespace