_Solution.AddIns 属性

定义

获取 AddIns 集合,它包含与解决方案关联的所有当前可用的外接程序。

public:
 property EnvDTE::AddIns ^ AddIns { EnvDTE::AddIns ^ get(); };
[System.Runtime.InteropServices.DispId(32)]
public EnvDTE.AddIns AddIns { [System.Runtime.InteropServices.DispId(32)] get; }
[<System.Runtime.InteropServices.DispId(32)>]
[<get: System.Runtime.InteropServices.DispId(32)>]
member this.AddIns : EnvDTE.AddIns
Public ReadOnly Property AddIns As AddIns

属性值

AddIns

AddIns 集合。

属性

示例

Sub AddinsExample()  
   ' Open a solution before running this example.  
   Dim soln As Solution  

   ' Create a reference to the solution.  
   soln = DTE.Solution  

   ' List number of Add-ins.  
   MsgBox(soln.AddIns.Count)  
End Sub  

注解

只有注册的外接程序才会出现在 Addins 集合中,并在加载和卸载解决方案时加载和卸载。

适用于