IVsProjectCfgDebugTargetSelection.GetCurrentDebugTarget 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.
Retrieves the command that is currently latched on the debug target menu controller.
public:
void GetCurrentDebugTarget([Runtime::InteropServices::Out] Guid % pguidDebugTargetType, [Runtime::InteropServices::Out] System::UInt32 % pDebugTargetTypeId, [Runtime::InteropServices::Out] System::String ^ % pbstrCurrentDebugTarget);
public void GetCurrentDebugTarget (out Guid pguidDebugTargetType, out uint pDebugTargetTypeId, out string pbstrCurrentDebugTarget);
abstract member GetCurrentDebugTarget : Guid * uint32 * string -> unit
Public Sub GetCurrentDebugTarget (ByRef pguidDebugTargetType As Guid, ByRef pDebugTargetTypeId As UInteger, ByRef pbstrCurrentDebugTarget As String)
Parameters
- pguidDebugTargetType
- Guid
[out] A GUID containing the debug target type.
- pDebugTargetTypeId
- UInt32
[out] The identifier of the debug target type.
- pbstrCurrentDebugTarget
- String
[out] The current debug target.
Remarks
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.