Share via


IVsProjectCfgDebugTargetSelection.HasDebugTargets Method

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

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

Syntax

'Declaration
Function HasDebugTargets ( _
    pDebugTargetSelectionService As IVsDebugTargetSelectionService, _
    <OutAttribute> ByRef pbstrSupportedTargetCommandIDs As Array _
) As Boolean
bool HasDebugTargets(
    IVsDebugTargetSelectionService pDebugTargetSelectionService,
    out Array pbstrSupportedTargetCommandIDs
)
bool HasDebugTargets(
    IVsDebugTargetSelectionService^ pDebugTargetSelectionService, 
    [OutAttribute] Array^% pbstrSupportedTargetCommandIDs
)
abstract HasDebugTargets : 
        pDebugTargetSelectionService:IVsDebugTargetSelectionService * 
        pbstrSupportedTargetCommandIDs:Array byref -> bool
function HasDebugTargets(
    pDebugTargetSelectionService : IVsDebugTargetSelectionService, 
    pbstrSupportedTargetCommandIDs : Array
) : boolean

Parameters

  • pbstrSupportedTargetCommandIDs
    Type: Array%

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

Return Value

Type: Boolean
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.

.NET Framework Security

See Also

Reference

IVsProjectCfgDebugTargetSelection Interface

Microsoft.VisualStudio.Shell.Interop Namespace