Condividi tramite


Proprietà VCDebugSettings.Remote

Ottiene o imposta il debug locale o remoto.

Spazio dei nomi:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Sintassi

'Dichiarazione
Property Remote As RemoteDebuggerType
RemoteDebuggerType Remote { get; set; }
property RemoteDebuggerType Remote {
    RemoteDebuggerType get ();
    void set (RemoteDebuggerType value);
}
abstract Remote : RemoteDebuggerType with get, set
function get Remote () : RemoteDebuggerType 
function set Remote (value : RemoteDebuggerType)

Valore proprietà

Tipo: Microsoft.VisualStudio.VCProjectEngine.RemoteDebuggerType
Enumerazione RemoteDebuggerType.

Note

Utilizzare l'enumerazione di RemoteDebuggerType per modificare il valore di questa proprietà. Vedere Procedura: compilare codice di esempio per l'Extensibility del modello di progetto per informazioni su come compilare ed eseguire l'esempio.

Esempi

Il seguente codice di esempio riportato di seguito la proprietà di Remote nell'ambiente di sviluppo integrato (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
    End Sub
End Module

Sicurezza di .NET Framework

Vedere anche

Riferimenti

VCDebugSettings Interfaccia

Spazio dei nomi Microsoft.VisualStudio.VCProjectEngine