Megosztás a következőn keresztül:


Reference2.Remove Method

Removes the reference from the References object that contains it.

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

Syntax

'Declaration
Sub Remove
'Usage
Dim instance As Reference2

instance.Remove()
void Remove()
void Remove()
function Remove()

Implements

Reference.Remove()

Examples

' 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

.NET Framework Security

See Also

Reference

Reference2 Interface

Reference2 Members

Remove Overload

VSLangProj2 Namespace