Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the reference from the References object that contains it.
Namespace: VSLangProj
Assembly: VSLangProj (in VSLangProj.dll)
Syntax
'Declaration
Sub Remove
void Remove()
void Remove()
abstract Remove : unit -> unit
function Remove()
Examples
This example adds a reference and then removes it.
' 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.