Udostępnij za pośrednictwem


Właściwość VCDebugSettings.Remote —

Pobiera lub ustawia lokalnego lub zdalnego debugowania.

Przestrzeń nazw:  Microsoft.VisualStudio.VCProjectEngine
Zestaw:  Microsoft.VisualStudio.VCProjectEngine (w Microsoft.VisualStudio.VCProjectEngine.dll)

Składnia

'Deklaracja
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)

Wartość właściwości

Typ: Microsoft.VisualStudio.VCProjectEngine.RemoteDebuggerType
A RemoteDebuggerType wyliczania.

Uwagi

Użyj RemoteDebuggerType wyliczanie, aby zmienić wartość tej właściwości.Zobacz Jak: kompilowania przykładowy kod do projektu modelu rozszerzalności informacje na temat skompilować i uruchomić ten przykład.

Przykłady

Następujący przykładowy kod modyfikuje Remote właściwość w zintegrowane środowisko programistyczne (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

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

VCDebugSettings Interfejs

Przestrzeń nazw Microsoft.VisualStudio.VCProjectEngine