Projects.Properties Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient une collection de toutes les propriétés relatives à la collection Projects.
public:
property EnvDTE::Properties ^ Properties { EnvDTE::Properties ^ get(); };
[System.Runtime.InteropServices.DispId(201)]
public EnvDTE.Properties Properties { [System.Runtime.InteropServices.DispId(201)] get; }
[<System.Runtime.InteropServices.DispId(201)>]
[<get: System.Runtime.InteropServices.DispId(201)>]
member this.Properties : EnvDTE.Properties
Public ReadOnly Property Properties As Properties
Valeur de propriété
Collection Properties.
- Attributs
Exemples
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 += "\nThe application containing this Projects collection: " + prjs.DTE.Name;
msg += "\nThe parent object of the Projects collection: " + prjs.Parent.Name;
msg += "\nThe GUID representing the Projects type: " + prjs.Kind;
if (prjs.Properties != null)
{
msg += "\nProperties:";
foreach (Property prop in prjs.Properties)
{
msg += "\n " + prop.Name;
}
}
MessageBox.Show(msg, "Projects Collection");
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Remarques
Certaines propriétés sont exposées en tant que propriétés Automation sur l' Solution objet ou à partir d’objets auxquels vous accédez via la solution, par exemple SolutionBuild objet pour les dépendances de Build.