Projects.Properties Projects.Properties Projects.Properties Projects.Properties Property

Definition

Gets a collection of all properties that pertain to the Projects collection.

public:
 property EnvDTE::Properties ^ Properties { EnvDTE::Properties ^ get(); };
[System.Runtime.InteropServices.DispId(201)]
[get: System.Runtime.InteropServices.DispId(201)]
public EnvDTE.Properties Properties { get; }
member this.Properties : EnvDTE.Properties
Public ReadOnly Property Properties As Properties
Property Value

Examples

public void CodeExample(DTE2 dte)  
{    
    try  
    {   // Open a project before running this sample  
        Projects prjs = dte.Solution.Projects;  
        string msg = "There are " + prjs.Count.ToString() + " projects in this collection.";  
        msg += "
The application containing this Projects collection: " + prjs.DTE.Name; msg += "
The parent object of the Projects collection: " + prjs.Parent.Name; msg += "
The GUID representing the Projects type: " + prjs.Kind; if (prjs.Properties != null) { msg += "
Properties:"; foreach (Property prop in prjs.Properties) { msg += "
" + prop.Name; } } MessageBox.Show(msg, "Projects Collection"); } catch(Exception ex) { MessageBox.Show(ex.Message); } }

Remarks

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.

Applies to