Breakpoint2.Children Propriété

Définition

Obtient une collection de tous les objets enfants Breakpoint2.

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

Valeur de propriété

Breakpoints

Collection Breakpoints.

Implémente

Attributs

Exemples

L’exemple suivant montre comment utiliser la Children propriété.

public static void Children(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("Children Property Test");  
    owp.Activate();  

    EnvDTE80.Debugger2 debugger = (EnvDTE80.Debugger2)dte.Debugger;  
    owp.OutputString("Number of children: " +   
                        debugger.Breakpoints.Item(1).Children.Count.ToString());  
}  

Remarques

Si le point d’arrêt n’a pas d’enfants, Nothing est retourné.

Les enfants sont créés lorsqu’un point d’arrêt en attente défini en mode création est lié à l’instance spécifique de votre application en mode arrêt ou exécution.

S’applique à