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

Configuration.Properties Property

Gets a collection of all properties that pertain to the Configuration object.

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

Property Value

Type: EnvDTE.Properties
A Properties collection.

Some properties are exposed as automation properties on the Solution object or from objects you get to through the solution, such as SolutionBuild object for build dependencies.

public void CodeExample(DTE2 dte, AddIn addin)
{   // Make sure you have a solution loaded into Visual Studio
    // before running the following example.
        Project prj;
        Configuration config; 
        OutputGroups outPGs;
        Properties props;
        if (dte.Solution.Projects.Count > 0)
            prj = dte.Solution.Projects.Item(1);
            config = prj.ConfigurationManager.ActiveConfiguration;
            // Return a collection of OutputGroup objects that contain
            // the names of files that are outputs for the project.
            outPGs = config.OutputGroups;
            // Returns the project for the config.
            // Returning the platform name for the Configuration.
            // Returning all properties for Configuration object.
            props = config.Properties;
            string p = "";
            foreach (Property prop in props)
                p = p + prop.Name + "\n";
    catch(Exception ex)
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.