IVsProjectCfgDebugTargetSelection.SetCurrentDebugTarget Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.