Breakpoint.Delete Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Exclui o ponto de interrupção.
public:
void Delete();
public:
void Delete();
void Delete();
[System.Runtime.InteropServices.DispId(1)]
public void Delete ();
[<System.Runtime.InteropServices.DispId(1)>]
abstract member Delete : unit -> unit
Public Sub Delete ()
- Atributos
Exemplos
O exemplo a seguir demonstra como usar o Delete método.
public static void Delete(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("Delete Method Test: ");
owp.Activate();
EnvDTE.Debugger debugger = (EnvDTE.Debugger)dte.Debugger;
owp.OutputString("\nThe breakpoint to delete: " +
debugger.Breakpoints.Item(1).Name);
debugger.Breakpoints.Item(1).Delete();
if(debugger.Breakpoints.Count == 0)
owp.OutputString("\nBreakpoint is deleted.");
}
Shared Sub ClearAllBreakpoints(ByRef dte As EnvDTE.DTE)
For Each bp As EnvDTE.Breakpoint In dte.Debugger.Breakpoints
bp.Delete()
Next
End Sub