VCLinkerTool.TerminalServerAware 属性

启用终端服务器识别。

命名空间:  Microsoft.VisualStudio.VCProjectEngine
程序集:  Microsoft.VisualStudio.VCProjectEngine(在 Microsoft.VisualStudio.VCProjectEngine.dll 中)

语法

声明
Property TerminalServerAware As termSvrAwarenessType
termSvrAwarenessType TerminalServerAware { get; set; }
property termSvrAwarenessType TerminalServerAware {
    termSvrAwarenessType get ();
    void set (termSvrAwarenessType value);
}
abstract TerminalServerAware : termSvrAwarenessType with get, set
function get TerminalServerAware () : termSvrAwarenessType 
function set TerminalServerAware (value : termSvrAwarenessType)

属性值

类型:Microsoft.VisualStudio.VCProjectEngine.termSvrAwarenessType
一个 termSvrAwarenessType 枚举。

备注

TerminalServerAware 公开 /TSAWARE(创建终端服务器识别的应用程序) 链接器选项的功能。

使用 termSvrAwarenessType 枚举更改此属性的值。

有关如何编译和运行此示例的信息,请参见 如何:编译项目模型扩展性示例代码

示例

下面的示例在集成开发环境 (IDE) 中修改 TerminalServerAware 属性:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
  Sub Test()
    Dim prj As VCProject
    Dim cfgs, tools As IVCCollection
    Dim cfg As VCConfiguration
    Dim tool As VCLinkerTool
    prj = DTE.Solution.Projects.Item(1).Object
    cfgs = prj.Configurations
    cfg = cfgs.Item(1)
    tool = cfg.Tools("VCLinkerTool")
    tool.TerminalServerAware = termSvrAwarenessType.termSvrAwareYes
  End Sub
End Module

.NET Framework 安全性

请参阅

参考

VCLinkerTool 接口

Microsoft.VisualStudio.VCProjectEngine 命名空间