Export (0) Print
Expand All

OutputGroup.DisplayName Property

Gets the name used in the user interface for this output group.

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

string this { get; }

Property Value

Type: System.String
A string representing the name used in the user interface for this output group.

DisplayName returns the name of the output group as it is displayed in the environment.

public void DisplayNameExample(DTE2 dte)
{
    // Before running this example, open a project.

    Project proj = dte.Solution.Projects.Item(1);
    OutputGroups groups = 
        proj.ConfigurationManager.ActiveConfiguration.OutputGroups;
    string msg = proj.Name + " has the following output groups:\n\n";

    foreach (OutputGroup group in groups)
        msg += "    " + group.DisplayName + "\n";

    MessageBox.Show(msg);
}

Community Additions

ADD
Show:
© 2014 Microsoft