ReferencesEventsClass.ReferenceRemoved (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 é removida de um projeto.

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

Sintaxe

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

AddHandler instance.ReferenceRemoved, handler
public virtual event _dispReferencesEvents_ReferenceRemovedEventHandler _dispReferencesEvents_Event.ReferenceRemoved
public:
virtual event _dispReferencesEvents_ReferenceRemovedEventHandler^ ReferenceRemoved {
    void add (_dispReferencesEvents_ReferenceRemovedEventHandler^ A_1) = _dispReferencesEvents_Event::ReferenceRemoved::add;
    void remove (_dispReferencesEvents_ReferenceRemovedEventHandler^ A_1) = _dispReferencesEvents_Event::ReferenceRemoved::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

Referência ou SourceProject propriedade do parâmetro pReference retorna Nothing, porque a referência não pertence a qualquer coleção, nem a ele pertence a qualquer projeto. o Collection, ContainingProject, Tentando se definir a CopyLocal propriedade deve gerar um erro, como ele não tem sentido se a referência não estiver contida em um projeto. Chamar o Remove método também deve gerar um erro.

Consulte também

Referência

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