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) (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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。