Partager via


VCDebugSettings.RemoteMachine, propriété

Lorsque Remote spécifie le débogage distant, la propriété RemoteMachine indique le nom de l'ordinateur sur lequel se trouve le programme à déboguer.

Espace de noms :  Microsoft.VisualStudio.VCProjectEngine
Assembly :  Microsoft.VisualStudio.VCProjectEngine (dans Microsoft.VisualStudio.VCProjectEngine.dll)

Syntaxe

'Déclaration
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)

Valeur de propriété

Type : String
Nom de l'ordinateur sur lequel se trouve le programme à déboguer.

Notes

Consultez Comment : compiler l'exemple de code pour l'extensibilité du modèle de projet pour savoir comment compiler et exécuter cet exemple.

Exemples

L'exemple suivant modifie la propriété d'RemoteMachine dans l'environnement de développement intégré (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

Sécurité .NET Framework

Voir aussi

Référence

VCDebugSettings Interface

Microsoft.VisualStudio.VCProjectEngine, espace de noms