共用方式為


ISharePointProjectItem.Open Event

Definition

Occurs when a SharePoint project item folder opens.

public:
 event EventHandler<Microsoft::VisualStudio::SharePoint::SharePointProjectItemOpenEventArgs ^> ^ Open;
event EventHandler<Microsoft.VisualStudio.SharePoint.SharePointProjectItemOpenEventArgs> Open;
member this.Open : EventHandler<Microsoft.VisualStudio.SharePoint.SharePointProjectItemOpenEventArgs> 
Event Open As EventHandler(Of SharePointProjectItemOpenEventArgs) 

Event Type

Remarks

To "open" a SharePoint project item folder, you can either double-click it, press the Enter key, or execute an "Open" command.

A project item type provider or extension can override the default behavior by setting Handled to true. By default, the SharePoint project item uses the DefaultFile instance and opens a default editor for it. You can change the DefaultFile property in the Open event handler.

Applies to