AddIns Property
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

DTE2.AddIns Property

Gets the AddIns collection, which contains all currently available Add-ins.

Namespace:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

AddIns AddIns { get; }

Property Value

Type: EnvDTE.AddIns
A AddIns collection.



The returned add-ins do not appear in the AddIns collection unless they are registered to appear there.

public void AddInsExample(DTE2 dte)
    // Display all add-ins.
    string msg = "Available add-ins:\n\n";

    foreach (AddIn addIn in dte.AddIns)
        msg += "    " + addIn.Name;

        if (addIn.Connected)
            msg += " (Loaded)\n";
            msg += " (Not Loaded)\n";

© 2016 Microsoft