Partager via


IVsProjectCfgDebugTargetSelection.HasDebugTargets Method

Definition

Retrieves a list of supported debug target types. This list is returned as a set of "<Guid>:<Id>" pairs as an array of strings.

public:
 bool HasDebugTargets(Microsoft::VisualStudio::Shell::Interop::IVsDebugTargetSelectionService ^ pDebugTargetSelectionService, [Runtime::InteropServices::Out] Array ^ % pbstrSupportedTargetCommandIDs);
public bool HasDebugTargets (Microsoft.VisualStudio.Shell.Interop.IVsDebugTargetSelectionService pDebugTargetSelectionService, out Array pbstrSupportedTargetCommandIDs);
abstract member HasDebugTargets : Microsoft.VisualStudio.Shell.Interop.IVsDebugTargetSelectionService * Array -> bool
Public Function HasDebugTargets (pDebugTargetSelectionService As IVsDebugTargetSelectionService, ByRef pbstrSupportedTargetCommandIDs As Array) As Boolean

Parameters

pDebugTargetSelectionService
IVsDebugTargetSelectionService

[in] The debug target selection service that can be used to update the debug targets.

pbstrSupportedTargetCommandIDs
Array

[out] An array containing the supported debug target types.

Returns

Boolean that indicates whether there were any debug targets to retrieve. If true, there were debug targets to retrieve.

Remarks

The Guid:Id pairs returned from this method are expected to be installed as CommandIDs with the Visual Studio command system owned by the DebugTargetHandler package.

If you want the project to inform the menu controller that the current debug target has changed by some other mechanism than the user making a selection with the menu controller, then the project can call UpdateDebugTargets to tell the menu control to update its state at the next idle time. For the convenience of the project the debug target handler's implementation of IVsDebugTargetSelectionService is passed as a parameter to this method. In addition, the IVsDebugTargetSelectionService interface can be retrieved by a QueryService for SVsDebugTargetSelectionService.

Applies to