Command Property
Visual Studio .NET 2003
If Remote specifies local debugging and Attach is false, the Command property specifies the executable file to start when you invoke the debugger. If Attach is true and Remote specifies remote debugging, the Command property specifies the process to which the debug process should be attached when you invoke the debugger.
[Visual Basic .NET]
Public Property Command() As String
[Visual Basic 6]
Property Get Command() As String Property Let Command( _ ByVal NewValue As String _ )
[C++]
HRESULT __stdcall get_Command( /* [out, retval] */ BSTR* retVal ); HRESULT __stdcall put_Command( /* [in] */ BSTR NewValue );
[C#]
public string Command {get; set;}
[JScript .NET]
public function get Command() : String public function set Command( NewValue : String )
Remarks
See Changing Project Settings for a Debug Configuration for more information.
Example
The following sample code modifies the Command property in the development environment:
' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
Sub Test()
Dim mystring As String
Dim prj As VCProject
Dim cfgs, tools As IVCCollection
Dim cfg As VCConfiguration
Dim tool As VCDebugSettings
prj = DTE.Solution.Projects.Item(1).Object
cfgs = prj.Configurations
cfg = cfgs.Item(1)
tool = cfg.DebugSettings
tool.Command = "test.exe"
End Sub
End Module
See Samples for Project Model Extensibility for information on how to compile and run this sample.
See Also
Command Object | Commands Collection
Applies To: VCDebugSettings Object