将引用从包含它的 References 对象中移除。
命名空间:  VSLangProj2
程序集:  VSLangProj2(在 VSLangProj2.dll 中)
语法
声明
Sub Remove
void Remove()
void Remove()
abstract Remove : unit -> unit 
function Remove()
实现
示例
' 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。