Compartilhar via


ReferencesEventsClass.ReferenceAdded (Evento)

Este evento dá suporte à infra-estrutura do .NET Framework e não deve ser usado diretamente do código.

Ocorre imediatamente após uma referência é adicionada a um projeto.

Namespace: VSLangProj
Assembly: VSLangProj (em vslangproj.dll)

Sintaxe

'Declaração
Public Event ReferenceAdded As _dispReferencesEvents_ReferenceAddedEventHandler Implements _dispReferencesEvents_Event.ReferenceAdded
'Uso
Dim instance As ReferencesEventsClass
Dim handler As _dispReferencesEvents_ReferenceAddedEventHandler

AddHandler instance.ReferenceAdded, handler
public virtual event _dispReferencesEvents_ReferenceAddedEventHandler _dispReferencesEvents_Event.ReferenceAdded
public:
virtual event _dispReferencesEvents_ReferenceAddedEventHandler^ ReferenceAdded {
    void add (_dispReferencesEvents_ReferenceAddedEventHandler^ A_1) = _dispReferencesEvents_Event::ReferenceAdded::add;
    void remove (_dispReferencesEvents_ReferenceAddedEventHandler^ A_1) = _dispReferencesEvents_Event::ReferenceAdded::remove;
}
J# supports the use of explicit interface implementations, but not the declaration of new ones.
JScript supports the use of events, but not the declaration of new ones.

Comentários

Esse evento não será gerado se a referência já existir no projeto. Do Add em vez disso, irá gerar um erro.

Consulte também

Referência

ReferencesEventsClass (Classe )
ReferencesEventsClass (Membros)
VSLangProj (Namespace)