Share via


IVsProjectCfgDebugTargetSelection.SetCurrentDebugTarget Method

Definition

Sets the current debug target when the user picks an item on the debug target menu controller.

public:
 void SetCurrentDebugTarget(Guid guidDebugTargetType, System::UInt32 debugTargetTypeId, System::String ^ bstrCurrentDebugTarget);
public void SetCurrentDebugTarget (Guid guidDebugTargetType, uint debugTargetTypeId, string bstrCurrentDebugTarget);
abstract member SetCurrentDebugTarget : Guid * uint32 * string -> unit
Public Sub SetCurrentDebugTarget (guidDebugTargetType As Guid, debugTargetTypeId As UInteger, bstrCurrentDebugTarget As String)

Parameters

guidDebugTargetType
Guid

[in] The debug target type to be set.

debugTargetTypeId
UInt32

[in] The identifier of the debug target type.

bstrCurrentDebugTarget
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.

Applies to