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

AddIn.Name Property

Gets the name of the AddIn object.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)
string Name { get; }

Property Value

Type: System.String
A string representing the name of the AddIn object.
public void AddinCollExample(AddIn addIn)
{
   // For this example to work, there should be an add-in
   // available in the Visual Studio enviroment.
   
   string peers = "";

   // Retrieve all peer elements of the addin.
   foreach (AddIn someAddin in addIn.Collection)
   {
      if ((someAddin != addIn) && (someAddin.Name != null))
         peers += someAddin.Name + "\n";
   }
   MessageBox.Show(addIn.Name + " has the following peer elements:\n\n" + peers);
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.