IVsProjectCfgDebugTargetSelection::SetCurrentDebugTarget Method (Guid, UInt32, String^)

 

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)

void SetCurrentDebugTarget(
	Guid guidDebugTargetType,
	unsigned int debugTargetTypeId,
	String^ bstrCurrentDebugTarget
)

Parameters

guidDebugTargetType
Type: System::Guid

[in] The debug target type to be set.

debugTargetTypeId
Type: System::UInt32

[in] The identifier of the debug target type.

bstrCurrentDebugTarget
Type: System::String^

[in] The current debug target.

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.

Return to top
Show: