Share via


IVsProjectCfgDebugTargetSelection.GetCurrentDebugTarget Method

Retrieves the command that is currently latched on the debug target menu controller.

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

Syntax

'Declaration
Sub GetCurrentDebugTarget ( _
    <OutAttribute> ByRef pguidDebugTargetType As Guid, _
    <OutAttribute> ByRef pDebugTargetTypeId As UInteger, _
    <OutAttribute> ByRef pbstrCurrentDebugTarget As String _
)
void GetCurrentDebugTarget(
    out Guid pguidDebugTargetType,
    out uint pDebugTargetTypeId,
    out string pbstrCurrentDebugTarget
)
void GetCurrentDebugTarget(
    [OutAttribute] Guid% pguidDebugTargetType, 
    [OutAttribute] unsigned int% pDebugTargetTypeId, 
    [OutAttribute] String^% pbstrCurrentDebugTarget
)
abstract GetCurrentDebugTarget : 
        pguidDebugTargetType:Guid byref * 
        pDebugTargetTypeId:uint32 byref * 
        pbstrCurrentDebugTarget:string byref -> unit
function GetCurrentDebugTarget(
    pguidDebugTargetType : Guid, 
    pDebugTargetTypeId : uint, 
    pbstrCurrentDebugTarget : String
)

Parameters

  • pguidDebugTargetType
    Type: System.Guid%

    [out] A GUID containing the debug target type.

  • pDebugTargetTypeId
    Type: System.UInt32%

    [out] The identifier of the debug target type.

  • pbstrCurrentDebugTarget
    Type: System.String%

    [out] The current debug target.

Remarks

The latched command is displayed as the visible command icon on the toolbar for the menu controller. 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.

.NET Framework Security

See Also

Reference

IVsProjectCfgDebugTargetSelection Interface

Microsoft.VisualStudio.Shell.Interop Namespace