Uwaga
Dostęp do tej strony wymaga autoryzacji. Może spróbować zalogować się lub zmienić katalogi.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
Reprezentuje zdarzenia dla WebReferences właściwość VSWebSite.Użycie tego obiektu, dostęp do funkcji dostarczonych przez WebReferencesEventsClass.
Przestrzeń nazw: VsWebSite
Zestaw: VsWebSite.Interop (w VsWebSite.Interop.dll)
Składnia
'Deklaracja
<GuidAttribute("63FE9F71-D793-435E-9F80-FD4082CA1444")> _
Public Interface WebReferencesEvents _
Inherits _WebReferencesEvents, _dispWebReferencesEvents_Event
[GuidAttribute("63FE9F71-D793-435E-9F80-FD4082CA1444")]
public interface WebReferencesEvents : _WebReferencesEvents,
_dispWebReferencesEvents_Event
[GuidAttribute(L"63FE9F71-D793-435E-9F80-FD4082CA1444")]
public interface class WebReferencesEvents : _WebReferencesEvents,
_dispWebReferencesEvents_Event
[<GuidAttribute("63FE9F71-D793-435E-9F80-FD4082CA1444")>]
type WebReferencesEvents =
interface
interface _WebReferencesEvents
interface _dispWebReferencesEvents_Event
end
public interface WebReferencesEvents extends _WebReferencesEvents, _dispWebReferencesEvents_Event
Typ WebReferencesEvents uwidacznia następujące elementy członkowskie.
Metody
Nazwa | Opis | |
---|---|---|
![]() |
add_WebReferenceAdded | Infrastruktura. Ta metoda obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebReferencesEvents_Event). |
![]() |
add_WebReferenceChanged | Infrastruktura. Ta metoda obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebReferencesEvents_Event). |
![]() |
add_WebReferenceRemoved | Infrastruktura. Ta metoda obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebReferencesEvents_Event). |
![]() |
remove_WebReferenceAdded | Infrastruktura. Ta metoda obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebReferencesEvents_Event). |
![]() |
remove_WebReferenceChanged | Infrastruktura. Ta metoda obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebReferencesEvents_Event). |
![]() |
remove_WebReferenceRemoved | Infrastruktura. Ta metoda obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebReferencesEvents_Event). |
Początek
Zdarzenia
Nazwa | Opis | |
---|---|---|
![]() |
WebReferenceAdded | Infrastruktura. To zdarzenie obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebReferencesEvents_Event). |
![]() |
WebReferenceChanged | Infrastruktura. To zdarzenie obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebReferencesEvents_Event). |
![]() |
WebReferenceRemoved | Infrastruktura. To zdarzenie obsługuje.NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie. (Odziedziczone z _dispWebReferencesEvents_Event). |
Początek
Uwagi
W tym interfejsie WebReferencesEventsClass jest uzyskiwany z WebReferencesEvents właściwości.
[!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 obiektu za pomocą obiektu rozwój narzędzi rozszerzalności (DTE) i subskrybowanie zdarzeń odwołanie sieci Web.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 WebRefsEvents As _
VsWebSite.WebReferencesEvents