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

 

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)

void GetCurrentDebugTarget(
	[OutAttribute] Guid% pguidDebugTargetType,
	[OutAttribute] unsigned int% pDebugTargetTypeId,
	[OutAttribute] String^% pbstrCurrentDebugTarget
)

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.

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.

Return to top
Show: