Condividi tramite


Interfaccia WebServicesEvents

Fornisce l'accesso agli eventi che vengono generati aggiungendo, eliminando o modificando i riferimenti ai servizi Web in un progetto di sito Web. Utilizzare questa classe per accedere alle funzionalità fornite dalla classe WebServicesEventsClass.

Spazio dei nomi:  VsWebSite
Assembly:  VsWebSite.Interop (in VsWebSite.Interop.dll)

Sintassi

'Dichiarazione
<GuidAttribute("E7E27BE0-FF6A-4D94-9B1B-D67F01D1E0FE")> _
Public Interface WebServicesEvents _
    Inherits _WebServicesEvents, _dispWebServicesEvents_Event
[GuidAttribute("E7E27BE0-FF6A-4D94-9B1B-D67F01D1E0FE")]
public interface WebServicesEvents : _WebServicesEvents, 
    _dispWebServicesEvents_Event
[GuidAttribute(L"E7E27BE0-FF6A-4D94-9B1B-D67F01D1E0FE")]
public interface class WebServicesEvents : _WebServicesEvents, 
    _dispWebServicesEvents_Event
[<GuidAttribute("E7E27BE0-FF6A-4D94-9B1B-D67F01D1E0FE")>]
type WebServicesEvents =  
    interface
        interface _WebServicesEvents
        interface _dispWebServicesEvents_Event
    end
public interface WebServicesEvents extends _WebServicesEvents, _dispWebServicesEvents_Event

Il tipo WebServicesEvents espone i seguenti membri.

Metodi

  Nome Descrizione
Metodo pubblico add_WebServiceAdded Infrastruttura. Questo metodo supporta l'infrastruttura .NET Framework e non deve essere utilizzato direttamente dal codice. (Ereditato da _dispWebServicesEvents_Event)
Metodo pubblico add_WebServiceChanged Infrastruttura. Questo metodo supporta l'infrastruttura .NET Framework e non deve essere utilizzato direttamente dal codice. (Ereditato da _dispWebServicesEvents_Event)
Metodo pubblico add_WebServiceRemoved Infrastruttura. Questo metodo supporta l'infrastruttura .NET Framework e non deve essere utilizzato direttamente dal codice. (Ereditato da _dispWebServicesEvents_Event)
Metodo pubblico add_WebServiceRenamed Infrastruttura. Questo metodo supporta l'infrastruttura .NET Framework e non deve essere utilizzato direttamente dal codice. (Ereditato da _dispWebServicesEvents_Event)
Metodo pubblico remove_WebServiceAdded Infrastruttura. Questo metodo supporta l'infrastruttura .NET Framework e non deve essere utilizzato direttamente dal codice. (Ereditato da _dispWebServicesEvents_Event)
Metodo pubblico remove_WebServiceChanged Infrastruttura. Questo metodo supporta l'infrastruttura .NET Framework e non deve essere utilizzato direttamente dal codice. (Ereditato da _dispWebServicesEvents_Event)
Metodo pubblico remove_WebServiceRemoved Infrastruttura. Questo metodo supporta l'infrastruttura .NET Framework e non deve essere utilizzato direttamente dal codice. (Ereditato da _dispWebServicesEvents_Event)
Metodo pubblico remove_WebServiceRenamed Infrastruttura. Questo metodo supporta l'infrastruttura .NET Framework e non deve essere utilizzato direttamente dal codice. (Ereditato da _dispWebServicesEvents_Event)

In alto

Eventi

  Nome Descrizione
Evento pubblico WebServiceAdded Infrastruttura. Questo metodo supporta l'infrastruttura .NET Framework e non deve essere utilizzato direttamente dal codice. (Ereditato da _dispWebServicesEvents_Event)
Evento pubblico WebServiceChanged Infrastruttura. Questo evento supporta l'infrastruttura .NET Framework e non deve essere utilizzato direttamente dal codice. (Ereditato da _dispWebServicesEvents_Event)
Evento pubblico WebServiceRemoved Infrastruttura. Questo evento supporta l'infrastruttura .NET Framework e non deve essere utilizzato direttamente dal codice. (Ereditato da _dispWebServicesEvents_Event)
Evento pubblico WebServiceRenamed Infrastruttura. Questo evento supporta l'infrastruttura .NET Framework e non deve essere utilizzato direttamente dal codice. (Ereditato da _dispWebServicesEvents_Event)

In alto

Note

Utilizzare la proprietà WebServicesEvents per ottenere questa interfaccia per l'oggetto WebServicesEventsClass.

Nota

Le funzionalità fornite da questa classe sono disponibili a partire da Visual Studio 2005. Non è disponibile in Visual Web Developer Express Edition.

Esempi

Nell'esempio di codice di macro seguente viene illustrato come creare un riferimento all'oggetto VSWebSite corrente tramite l'oggetto DTE DTE2 e come sottoscrivere un evento. Questo esempio fa parte di un esempio più esaustivo fornito per l'interfaccia VSWebSiteEvents.

' Initialize the VsWebSite and the Events
Sub InitAssemblyRefsEvents()
    ' Get a reference to the first Web site 
    ' in the current solution
    Dim ws As VsWebSite.VSWebSite = _
        DTE.Solution.Projects.Item(1).Object

    ' Attach the Web site events to module events
    AssemblyRefsEvents = _
        ws.VSWebSiteEvents.AssemblyReferencesEvents
End Sub
' Declare the event
' The macro IDE requires the attribute 
' in order to trap the events
<System.ContextStaticAttribute()> _
Public WithEvents WebSvcsEvents As _
    VsWebSite.WebServicesEvents

Vedere anche

Riferimenti

Spazio dei nomi VsWebSite

DTE

VSWebSite

VSWebSiteEvents

VSWebSiteEvents

WebServicesEvents

WebServicesEventsClass

Altre risorse

Riferimenti agli assembly di automazione e all'oggetto DTE2

Procedura: gestire gli eventi in una macro