Export (0) Print
Expand All

_Solution.ExtenderNames Property

Gets a list of available Extenders for the object.

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

Object ExtenderNames { get; }

Property Value

Type: System.Object
An object containing an automation-compliant array of strings.

Returns the names of the currently applicable Extenders for this object using the CATID as specified by its ExtenderCATID property.

public void ExtenderNamesExample(DTE2 dte)
    string[] names = (string[])dte.Solution.ExtenderNames;
    string exts = "";
    foreach (string name in names)
        exts += name + Environment.NewLine;

    MessageBox.Show(dte.Solution.FullName + 
        " has the following extenders:" + Environment.NewLine + 
        Environment.NewLine + exts);

Community Additions

© 2015 Microsoft