Compartilhar via


Debugger.Languages Property

Definition

Gets a list of languages that the debugger supports.

public:
 property EnvDTE::Languages ^ Languages { EnvDTE::Languages ^ get(); };
[System.Runtime.InteropServices.DispId(101)]
public EnvDTE.Languages Languages { [System.Runtime.InteropServices.DispId(101)] get; }
[<System.Runtime.InteropServices.DispId(101)>]
[<get: System.Runtime.InteropServices.DispId(101)>]
member this.Languages : EnvDTE.Languages
Public ReadOnly Property Languages As Languages

Property Value

A Languages collection.

Attributes

Examples

The following example demonstrates how to use the Languages property.

public static void Languages(DTE dte)  
{  
    // Setup the debug Output window.  
    Window w = (Window)dte.Windows.Item(EnvDTE.Constants.vsWindowKindOutput);  
    w.Visible = true;  
    OutputWindow ow = (OutputWindow)w.Object;  
    OutputWindowPane owp = ow.OutputWindowPanes.Add("Languages Test");  
    owp.Activate();  

    foreach(EnvDTE.Language lang in dte.Debugger.Languages)  
        owp.OutputString(lang.Name + "\n");  
}  
Shared Sub Languages(ByRef dte As EnvDTE.DTE)  
    Dim str As String  
    For Each language As EnvDTE.Language In dte.Debugger.Languages  
        str += vbCrLf + language.Name.ToString()  
    Next  
    MessageBox.Show("List of languages: " + str, "Debugger Test - Languages")  
End Sub  

Remarks

Languages returns a Languages collection containing a list of languages that the debugger supports. This list is dictated by the version of Visual Studio and the installed language add-ons.

Applies to