Método Reference2.Remove

Remove a referência da References o objeto que o contém.

Namespace:  VSLangProj2
Assembly:  VSLangProj2 (em VSLangProj2.dll)

Sintaxe

'Declaração
Sub Remove
void Remove()
void Remove()
abstract Remove : unit -> unit 
function Remove()

Exemplos

' Macro Editor
Imports VSLangProj
Public Sub TestReport()
   ' First project is a Visual Basic or C# project.
   Dim vsProject As VSProject = _
      CType(DTE.Solution.Projects.Item(1).Object, VSProject)
        
   ' Add an assembly and display its type, "Assembly".
   Dim newRef As Reference
   newRef = vsProject.References.Add("C:\SomeProject\bin\template.dll")
   newRef.Remove()
End Sub

Segurança do .NET Framework

Consulte também

Referência

Reference2 Interface

Sobrecargas Remove

Namespace VSLangProj2