Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

_Solution.Count Property

Gets a value indicating the number of objects in the collection.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)
int Count { get; }

Property Value

Type: System.Int32
The number of objects in the collection.
public void CountExample(DTE2 dte)
{
    // Display all add-ins.
    AddIn addIn;
    string msg = "";

    for (int i = 1; i <= dte.AddIns.Count; ++i)
    {
        addIn = dte.AddIns.Item(i);
        msg += "    " + addIn.Name;

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

    MessageBox.Show("Available add-ins:\n\n" + msg);
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.