Condividi tramite


Interfaccia AssemblyReferencesEvents

Rappresenta gli eventi per la proprietà References di un oggetto VSWebSite. Utilizzare questa classe per accedere alle funzionalità fornite dalla classe AssemblyReferencesEventsClass.

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

Sintassi

'Dichiarazione
<GuidAttribute("E5E56972-0CFE-49B7-9EFB-923613FDA978")> _
Public Interface AssemblyReferencesEvents _
    Inherits _AssemblyReferencesEvents, _dispAssemblyReferencesEvents_Event
[GuidAttribute("E5E56972-0CFE-49B7-9EFB-923613FDA978")]
public interface AssemblyReferencesEvents : _AssemblyReferencesEvents, 
    _dispAssemblyReferencesEvents_Event
[GuidAttribute(L"E5E56972-0CFE-49B7-9EFB-923613FDA978")]
public interface class AssemblyReferencesEvents : _AssemblyReferencesEvents, 
    _dispAssemblyReferencesEvents_Event
[<GuidAttribute("E5E56972-0CFE-49B7-9EFB-923613FDA978")>]
type AssemblyReferencesEvents =  
    interface
        interface _AssemblyReferencesEvents
        interface _dispAssemblyReferencesEvents_Event
    end
public interface AssemblyReferencesEvents extends _AssemblyReferencesEvents, _dispAssemblyReferencesEvents_Event

Il tipo AssemblyReferencesEvents espone i seguenti membri.

Metodi

  Nome Descrizione
Metodo pubblico add_AssemblyReferenceAdded Infrastruttura. Questo metodo supporta l'infrastruttura .NET Framework e non deve essere utilizzato direttamente dal codice. (Ereditato da _dispAssemblyReferencesEvents_Event)
Metodo pubblico add_AssemblyReferenceRemoved Infrastruttura. Questo metodo supporta l'infrastruttura .NET Framework e non deve essere utilizzato direttamente dal codice. (Ereditato da _dispAssemblyReferencesEvents_Event)
Metodo pubblico remove_AssemblyReferenceAdded Infrastruttura. Questo metodo supporta l'infrastruttura .NET Framework e non deve essere utilizzato direttamente dal codice. (Ereditato da _dispAssemblyReferencesEvents_Event)
Metodo pubblico remove_AssemblyReferenceRemoved Infrastruttura. Questo metodo supporta l'infrastruttura .NET Framework e non deve essere utilizzato direttamente dal codice. (Ereditato da _dispAssemblyReferencesEvents_Event)

In alto

Eventi

  Nome Descrizione
Evento pubblico AssemblyReferenceAdded Infrastruttura. Questo evento supporta l'infrastruttura .NET Framework e non deve essere utilizzato direttamente dal codice. (Ereditato da _dispAssemblyReferencesEvents_Event)
Evento pubblico AssemblyReferenceRemoved Infrastruttura. Questo evento supporta l'infrastruttura .NET Framework e non deve essere utilizzato direttamente dal codice. (Ereditato da _dispAssemblyReferencesEvents_Event)

In alto

Note

Utilizzare la proprietà AssemblyReferencesEvents per ottenere questa interfaccia per l'oggetto AssemblyReferencesEventsClass.

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'ambiente DTE 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 AssemblyRefsEvents As _
    VsWebSite.AssemblyReferencesEvents

Vedere anche

Riferimenti

Spazio dei nomi VsWebSite

DTE

VSWebSite

VSWebSiteEvents

VSWebSiteEvents

AssemblyReferencesEvents

AssemblyReferencesEventsClass

Altre risorse

Riferimenti agli assembly di automazione e all'oggetto DTE2

Procedura: gestire gli eventi in una macro