Share via


Debugger3.Languages Property

Gets a list of languages that the debugger supports.

Namespace:  EnvDTE90
Assembly:  EnvDTE90 (in EnvDTE90.dll)

Syntax

'Declaration
ReadOnly Property Languages As Languages
    Get
Languages Languages { get; }
property Languages^ Languages {
    Languages^ get ();
}
abstract Languages : Languages
function get Languages () : Languages

Property Value

Type: EnvDTE.Languages
A Languages collection.

Implements

Debugger2.Languages

Remarks

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

Examples

The following example shows how to use the Languages property.

To test this property:

  1. Open the target project and run the add-in.
public static void Languages(EnvDTE80.DTE2 dte)
{
    // Setup 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();

    EnvDTE90.Debugger3 debugger = (EnvDTE90.Debugger3)dte.Debugger;
    foreach (EnvDTE.Language lang in debugger.Languages)
        owp.OutputString(lang.Name + "\n");
}
Sub SupportedLanguages()
    Dim ow As OutputWindow
    ow = DTE2.Windows.Item(Constants.vsWindowKindOutput).Object

    ow.ActivePane.OutputString("Debugger supports the following _
    languages:" + vbCrLf)

    Dim lang As Language
    For Each lang In DTE2.Debugger.Languages
        ow.ActivePane.OutputString(lang.Name + vbCrLf)
    Next
End Sub

.NET Framework Security

See Also

Reference

Debugger3 Interface

Languages Overload

EnvDTE90 Namespace