Debugger3.DetachAll Méthode
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.
Se détache de tous les programmes attachés.
public:
void DetachAll();
public:
void DetachAll();
void DetachAll();
[System.Runtime.InteropServices.DispId(2)]
public void DetachAll ();
[<System.Runtime.InteropServices.DispId(2)>]
abstract member DetachAll : unit -> unit
Public Sub DetachAll ()
Implémente
- Attributs
Exemples
L'exemple suivant illustre l'utilisation de la méthode DetachAll.
public static void DetachAll(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("DetachAll Method
Test");
owp.Activate();
EnvDTE90.Debugger3 debugger = (EnvDTE90.Debugger3)dte.Debugger;
debugger.DetachAll();
owp.OutputString("Detached all processes.");
}
Sub DetachAll()
On Error Goto BadDetach
DTE2.Debugger.DetachAll()
Exit Sub
BadDetach:
MsgBox("Could not detach from all processes.")
End Sub
Remarques
DetachAll tente de se détacher de tous les programmes attachés. Cette opération peut échouer si le processus attaché ne peut pas être détaché. Pour plus d’informations, consultez Comment : détacher des programmes.