Udostępnij za pośrednictwem


Interfejs WebServicesEvents

Zapewnia dostęp do zdarzenia, które są wywoływane przez dodawanie, usuwanie lub zmienianie odwołania do usługi sieci Web w projekcie witryny sieci Web.Użyj tej klasy dostęp do funkcji dostarczonych przez WebServicesEventsClass.

Przestrzeń nazw:  VsWebSite
Zestaw:  VsWebSite.Interop (w VsWebSite.Interop.dll)

Składnia

'Deklaracja
<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

Typ WebServicesEvents uwidacznia następujące elementy członkowskie.

Metody

  Nazwa Opis
Metoda publiczna add_WebServiceAdded Infrastruktura. Ta metoda obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebServicesEvents_Event).
Metoda publiczna add_WebServiceChanged Infrastruktura. Ta metoda obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebServicesEvents_Event).
Metoda publiczna add_WebServiceRemoved Infrastruktura. Ta metoda obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebServicesEvents_Event).
Metoda publiczna add_WebServiceRenamed Infrastruktura. Ta metoda obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebServicesEvents_Event).
Metoda publiczna remove_WebServiceAdded Infrastruktura. Ta metoda obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebServicesEvents_Event).
Metoda publiczna remove_WebServiceChanged Infrastruktura. Ta metoda obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebServicesEvents_Event).
Metoda publiczna remove_WebServiceRemoved Infrastruktura. Ta metoda obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebServicesEvents_Event).
Metoda publiczna remove_WebServiceRenamed Infrastruktura. Ta metoda obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebServicesEvents_Event).

Początek

Zdarzenia

  Nazwa Opis
Zdarzenie publiczne WebServiceAdded Infrastruktura. Ta metoda obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebServicesEvents_Event).
Zdarzenie publiczne WebServiceChanged Infrastruktura. To zdarzenie obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebServicesEvents_Event).
Zdarzenie publiczne WebServiceRemoved Infrastruktura. To zdarzenie obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebServicesEvents_Event).
Zdarzenie publiczne WebServiceRenamed Infrastruktura. To zdarzenie obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebServicesEvents_Event).

Początek

Uwagi

Użyj WebServicesEvents właściwość, aby uzyskać ten interfejs WebServicesEventsClass obiektu.

[!UWAGA]

Funkcji tej klasy jest dostępna w wersji programu Visual Studio, począwszy od programu Visual Studio 2005.Nie jest dostępny w Visual Web Developer Express Edition.

Przykłady

Poniższy przykład kodu makra pokazuje jak utworzyć odwołania do bieżącego VSWebSite obiekt poprzez rozszerzalności narzędzia rozwoju (DTE2) obiektu i sposób ich subskrybowania zdarzenia.Próbka ta jest częścią większej próbki kodu dla 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

Zobacz też

Informacje

Przestrzeń nazw VsWebSite

DTE

VSWebSite

VSWebSiteEvents

VSWebSiteEvents

WebServicesEvents

WebServicesEventsClass

Inne zasoby

Odwołania do zestawów automatyzacji i obiektu DTE2

Jak: obsługi zdarzeń w makrze