_Solution.AddIns 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取 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 集合。
- 属性
示例
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 集合中,并在加载和卸载解决方案时加载和卸载。