Breakpoint.Children Breakpoint.Children Breakpoint.Children Breakpoint.Children Property


Gets a collection of objects contained within this code construct.

 property EnvDTE::Breakpoints ^ Children { EnvDTE::Breakpoints ^ get(); };
[get: System.Runtime.InteropServices.DispId(203)]
public EnvDTE.Breakpoints Children { get; }
member this.Children : EnvDTE.Breakpoints
Public ReadOnly Property Children As Breakpoints
Property Value


The following example demonstrates how to use the Children property.

public static void Children(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("Children Property Test");  
    EnvDTE.Debugger debugger = (EnvDTE.Debugger)dte.Debugger;  
    owp.OutputString("Number of children: " + debugger.Breakpoints.Item(1).Children.Count.ToString());  
Shared Sub Children(ByRef dte As EnvDTE.DTE)  
    MessageBox.Show("Number of children: " + _  
End Sub  


If the Breakpoint has no children, then Nothing is returned.

The children are created when a pending breakpoint that is set in the design mode is bound to the specific instance of your application in break or run mode.

Applies to