DocumentEventsClass.DocumentOpening Event

Definition

Occurs before a document is opened.

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

public:
 virtual event EnvDTE::_dispDocumentEvents_DocumentOpeningEventHandler ^ DocumentOpening;
public:
 virtual event EnvDTE::_dispDocumentEvents_DocumentOpeningEventHandler ^ DocumentOpening;
public virtual event EnvDTE._dispDocumentEvents_DocumentOpeningEventHandler DocumentOpening;
member this.DocumentOpening : EnvDTE._dispDocumentEvents_DocumentOpeningEventHandler 
Public Overridable Custom Event DocumentOpening As _dispDocumentEvents_DocumentOpeningEventHandler Implements DocumentOpening

Event Type

Implements

Examples

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

Applies to