IDebugProgram2::CanDetach
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
Determines if a debug engine (DE) can detach from the program.
Syntax
HRESULT CanDetach(
void
);
int CanDetach();
Return Value
If can detach, returns S_OK
; otherwise, returns an error code. Returns S_FALSE
if the DE cannot detach from the program.