Proprietà Projects.Properties
Ottiene una raccolta di tutte le proprietà relative ala raccolta Projects.
Spazio dei nomi: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Sintassi
'Dichiarazione
ReadOnly Property Properties As Properties
Properties Properties { get; }
property Properties^ Properties {
Properties^ get ();
}
abstract Properties : Properties with get
function get Properties () : Properties
Valore proprietà
Tipo: EnvDTE.Properties
Raccolta Properties.
Note
Alcune proprietà vengono esposte come proprietà di automazione nell'oggetto Solution o da oggetti ottenuti tramite la soluzione, quale l'oggetto SolutionBuild per le dipendenze di compilazione.
Esempi
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);
}
}
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per altre informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.
Vedere anche
Riferimenti
Altre risorse
Procedura: compilare ed eseguire gli esempi di codice del modello a oggetti di automazione