Udostępnij za pośrednictwem


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
'Usage
Dim instance As DocumentEventsClass 
Dim handler As _dispDocumentEvents_DocumentOpeningEventHandler 

AddHandler instance.DocumentOpening, handler
public virtual event _dispDocumentEvents_DocumentOpeningEventHandler DocumentOpening
public:
virtual   event _dispDocumentEvents_DocumentOpeningEventHandler^ DocumentOpening {
    void add (_dispDocumentEvents_DocumentOpeningEventHandler^ value);
    void remove (_dispDocumentEvents_DocumentOpeningEventHandler^ value);
}
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

DocumentEventsClass Members

EnvDTE Namespace