다음을 통해 공유


Breakpoint2.Delete Method

Definition

Deletes the breakpoint.

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 ()

Implements

Attributes

Examples

The following example demonstrates how to use the Delete method.

public static void Delete(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("Delete method: ");  
    owp.Activate();  

    EnvDTE80.Debugger2 debugger = (EnvDTE80.Debugger2)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.");  
}  

Applies to