Compartir a través de


IVsProjectCfgDebugTargetSelection.SetCurrentDebugTarget Method

Sets the current debug target when the user picks an item 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 SetCurrentDebugTarget ( _
    guidDebugTargetType As Guid, _
    debugTargetTypeId As UInteger, _
    bstrCurrentDebugTarget As String _
)
void SetCurrentDebugTarget(
    Guid guidDebugTargetType,
    uint debugTargetTypeId,
    string bstrCurrentDebugTarget
)
void SetCurrentDebugTarget(
    [InAttribute] Guid guidDebugTargetType, 
    [InAttribute] unsigned int debugTargetTypeId, 
    [InAttribute] String^ bstrCurrentDebugTarget
)
abstract SetCurrentDebugTarget : 
        guidDebugTargetType:Guid * 
        debugTargetTypeId:uint32 * 
        bstrCurrentDebugTarget:string -> unit
function SetCurrentDebugTarget(
    guidDebugTargetType : Guid, 
    debugTargetTypeId : uint, 
    bstrCurrentDebugTarget : String
)

Parameters

  • guidDebugTargetType
    Type: Guid

    [in] The debug target type to be set.

  • debugTargetTypeId
    Type: UInt32

    [in] The identifier of the debug target type.

  • bstrCurrentDebugTarget
    Type: String

    [in] The current debug target.

Remarks

After calling SetCurrentDebugTarget, the debug target handler package should immediately call GetCurrentDebugTarget to reconfirm if the just selected item is in fact to be left as the currently-latched item for the menu controller. This accommodates that there may be commands on the menu controller that bring up a dialog or perform some other operation that should not be left as the latched state for the controller.

.NET Framework Security

See Also

Reference

IVsProjectCfgDebugTargetSelection Interface

Microsoft.VisualStudio.Shell.Interop Namespace