Właściwość OutputGroup.DisplayName —

Pobiera nazwę używaną w interfejsie użytkownika dla tej grupy danych wyjściowych.

Przestrzeń nazw:  EnvDTE
Zestaw:  EnvDTE (w EnvDTE.dll)

Składnia

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

Wartość właściwości

Typ: String
Ciąg znaków reprezentujący nazwę używaną w interfejsie użytkownika dla tej grupy danych wyjściowych.

Uwagi

DisplayNameZwraca nazwę grupy produkcji, jak jest ona wyświetlana w środowisku.

Przykłady

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);
}

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

OutputGroup Interfejs

Przestrzeń nazw EnvDTE

Inne zasoby

Porady: kompilowanie i uruchamianie kodu modelu obiektów automatyzacji — przykłady