IDebugProgramPublisher2::UnpublishProgram

Applies to: yesVisual Studio noVisual 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

Makes a program unavailable to be debugged.

Syntax

HRESULT UnpublishProgram(
   IUnknown* pDebuggeeInterface
);
int UnpublishProgram(
   object pDebuggeeInterface
);

Parameters

pDebuggeeInterface
[in] An IUnknown interface to the program. This is the same value supplied to the PublishProgram method and uniquely identifies the program being removed (that is, it's used as a cookie).

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

To make a program available to the debug engines and session debug manager, use the PublishProgram method.

See also