共用方式為


VCDebugSettings.Remote 屬性

取得或設定本機或遠端偵錯。

命名空間:  Microsoft.VisualStudio.VCProjectEngine
組件:  Microsoft.VisualStudio.VCProjectEngine (在 Microsoft.VisualStudio.VCProjectEngine.dll 中)

語法

'宣告
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)

屬性值

類型:Microsoft.VisualStudio.VCProjectEngine.RemoteDebuggerType
RemoteDebuggerType 列舉型別。

備註

使用 RemoteDebuggerType 列舉變更這個屬性的值。 如需如何編譯及執行範例的詳細資訊,請參閱 如何:編譯專案模型擴充性的範例程式碼

範例

下列範例程式碼修改在整合式開發環境 (IDE) 的 Remote 屬性:

' 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

.NET Framework 安全性

請參閱

參考

VCDebugSettings 介面

Microsoft.VisualStudio.VCProjectEngine 命名空間