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

OutputGroup.CanonicalName Property

Gets the unique name used for this output group.

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

Property Value

Type: System.String
A string representing the name used for the output group.
public void CanonicalNameExample(DTE2 dte)
    // Before running this example, open a project.

    // Display the output groups of the first project.
    Project proj = dte.Solution.Item(1);
    Configuration con = proj.ConfigurationManager.ActiveConfiguration;
    string names = "";
    foreach (OutputGroup og in con.OutputGroups)
        names += og.CanonicalName + Environment.NewLine;

    MessageBox.Show(proj.Name + "'s " + con.ConfigurationName + 
        " output groups:" + Environment.NewLine + Environment.NewLine + 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.