Freigeben über


PublishEventsClass.OnPublishDone Event

Definition

Event triggered when a publish operation has ended.

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

public:
 virtual event EnvDTE80::_dispPublishEvents_OnPublishDoneEventHandler ^ OnPublishDone;
public:
 virtual event EnvDTE80::_dispPublishEvents_OnPublishDoneEventHandler ^ OnPublishDone;
public virtual event EnvDTE80._dispPublishEvents_OnPublishDoneEventHandler OnPublishDone;
member this.OnPublishDone : EnvDTE80._dispPublishEvents_OnPublishDoneEventHandler 
Public Overridable Custom Event OnPublishDone As _dispPublishEvents_OnPublishDoneEventHandler Implements OnPublishDone

Event Type

Implements

Examples

Public Class Connect  
    Implements IDTExtensibility2  
    Public WithEvents pubEvents As EnvDTE80.PublishEvents  

    Dim applicationObject As DTE2  

    Private Sub MenuItemCallback(ByVal sender As Object, ByVal e As EventArgs)        Try  
            applicationObject = CType(application, DTE2)  
            Dim events As EnvDTE80.Events2  
            events = applicationObject.Events2  
            pubEvents = CType(events._PublishEvents(Nothing), _  
            EnvDTE80.PublishEvents)  
        Catch ex As Exception  
            MsgBox(ex.ToString)  
        End Try  
    End Sub  

    Private Sub pubEvents_OnPublishBegin(ByRef [Continue] As Boolean) _  
    Handles pubEvents.OnPublishBegin  
        MsgBox("A publish event is occuring..")  
    End Sub  

    Private Sub pubEvents_OnPublishDone(ByVal Success As Boolean) _  
    Handles pubEvents.OnPublishDone  
        MsgBox("A publish event has completed.")  
    End Sub  

Remarks

Visual Studio includes a new feature known as ClickOnce Deployment. ClickOnce allows you to publish Windows applications to a Web server or network file share for simplified installation. For more information about this, see ClickOnce Security and Deployment.

Applies to