Breakpoint.Language Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient le langage associé au nom ou au point d'arrêt conditionnel.
public:
property System::String ^ Language { System::String ^ get(); };
public:
property Platform::String ^ Language { Platform::String ^ get(); };
[System.Runtime.InteropServices.DispId(110)]
public string Language { [System.Runtime.InteropServices.DispId(110)] get; }
[<System.Runtime.InteropServices.DispId(110)>]
[<get: System.Runtime.InteropServices.DispId(110)>]
member this.Language : string
Public ReadOnly Property Language As String
Valeur de propriété
Constante CodeModelLanguageConstants.
- Attributs
Exemples
L’exemple suivant montre comment utiliser la Language propriété.
public static void Language(DTE 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("Language Property Test");
owp.Activate();
EnvDTE.Debugger debugger = (EnvDTE.Debugger)dte.Debugger;
owp.OutputString("Programming language used to author the code: " +
debugger.Breakpoints.Item(1).Language);
}
Shared Sub Language(ByRef dte As EnvDTE.DTE)
MessageBox.Show("Programming language used to author the code: " + _
dte.Debugger.Breakpoints.Item(1).Language, _
"Breakpoint Test - Language")
End Sub