次の方法で共有


Debugger3.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.

Implements

Attributes

Examples

The following example shows how to use the Languages property.

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  

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.

Applies to