Compartir a través de


VCDebugSettings.RemoteMachine (Propiedad)

Cuando Remote especifica la depuración remota, la propiedad RemoteMachine especifica el nombre del equipo que contiene el programa que se va a depurar.

Espacio de nombres:  Microsoft.VisualStudio.VCProjectEngine
Ensamblado:  Microsoft.VisualStudio.VCProjectEngine (en Microsoft.VisualStudio.VCProjectEngine.dll)

Sintaxis

'Declaración
Property RemoteMachine As String
string RemoteMachine { get; set; }
property String^ RemoteMachine {
    String^ get ();
    void set (String^ value);
}
abstract RemoteMachine : string with get, set
function get RemoteMachine () : String 
function set RemoteMachine (value : String)

Valor de propiedad

Tipo: String
Nombre del equipo que contiene el programa que se va a depurar.

Comentarios

Vea Cómo: Compilar el código de ejemplo de extensibilidad del modelo de proyecto para obtener información sobre cómo compilar y ejecutar este ejemplo.

Ejemplos

El ejemplo siguiente se modifica la propiedad de RemoteMachine en el entorno de desarrollo integrado (IDE):

' 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.Remote = RemoteDebuggerType.DbgRemote
        tool.RemoteMachine = "test"
    End Sub
End Module

Seguridad de .NET Framework

Vea también

Referencia

VCDebugSettings Interfaz

Microsoft.VisualStudio.VCProjectEngine (Espacio de nombres)