AddIns.Add(String, String, String, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将外接程序添加到加载特定解决方案时加载的外接程序集合中。 如果集合为 DTE,则它将失败 。AddIns 集合。
public:
EnvDTE::AddIn ^ Add(System::String ^ ProgID, System::String ^ Description, System::String ^ Name, bool Connected);
public:
EnvDTE::AddIn ^ Add(Platform::String ^ ProgID, Platform::String ^ Description, Platform::String ^ Name, bool Connected);
EnvDTE::AddIn Add(std::wstring const & ProgID, std::wstring const & Description, std::wstring const & Name, bool Connected);
[System.Runtime.InteropServices.DispId(102)]
public EnvDTE.AddIn Add (string ProgID, string Description, string Name, bool Connected);
[<System.Runtime.InteropServices.DispId(102)>]
abstract member Add : string * string * string * bool -> EnvDTE.AddIn
Public Function Add (ProgID As String, Description As String, Name As String, Connected As Boolean) As AddIn
参数
- ProgID
- String
必需。 要添加到集合中的外接程序的 ProgID。
- Description
- String
必需。 要添加到集合中的外接程序的说明。
- Name
- String
必需。 要添加到集合中的外接程序的名称。
- Connected
- Boolean
必需。 指示当前是否已加载外接程序。
返回
一个 AddIn 对象。
- 属性
注解
外接程序现在已弃用。 有关详细信息,请参阅 FAQ:将外接程序转换为 VSPackage 扩展。