Proprietà OutputGroup.DisplayName

Ottiene il nome utilizzato nell'interfaccia utente per questo gruppo di output.

Spazio dei nomi:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Sintassi

'Dichiarazione
ReadOnly Default Property DisplayName As String
    Get
string this { get; }
property String^ default {
    String^ get ();
}
abstract DisplayName : string
function get DisplayName () : String

Valore proprietà

Tipo: System.String
Stringa che rappresenta il nome utilizzato nell'interfaccia utente per questo gruppo di output.

Note

DisplayName restituisce il nome del gruppo di output come viene visualizzato nell'ambiente.

Esempi

Sub DisplayNameExample(ByVal dte As DTE2)

    ' Before running this example, open a project.

    Dim proj As Project = dte.Solution.Projects.Item(1)
    Dim groups As OutputGroups = _
        proj.ConfigurationManager.ActiveConfiguration.OutputGroups
    Dim group As OutputGroup
    Dim msg As String = proj.Name & _
        " has the following output groups:" & vbCrLf & vbCrLf

    For Each group In groups
        msg &= "    " & group.DisplayName & vbCrLf
    Next

    MsgBox(msg)

End Sub
public void DisplayNameExample(DTE2 dte)
{
    // Before running this example, open a project.

    Project proj = dte.Solution.Projects.Item(1);
    OutputGroups groups = 
        proj.ConfigurationManager.ActiveConfiguration.OutputGroups;
    string msg = proj.Name + " has the following output groups:\n\n";

    foreach (OutputGroup group in groups)
        msg += "    " + group.DisplayName + "\n";

    MessageBox.Show(msg);
}

Sicurezza di .NET Framework

Vedere anche

Riferimenti

OutputGroup Interfaccia

Spazio dei nomi EnvDTE

Altre risorse

Procedura: compilare ed eseguire gli esempi di codice del modello a oggetti di automazione