Share via


TeamFoundationRequestContext.To 方法

对于使用检索在不同的服务托管可用于执行的 requestContext。

根 requestContext 拥有此上下文;因此,requestContext,当调用方完成时,不应配置。 当占有的上下文时,它将被释放。

命名空间:  Microsoft.TeamFoundation.Framework.Server
程序集:  Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)

语法

声明
Public Overridable Function To ( _
    hostType As TeamFoundationHostType _
) As TeamFoundationRequestContext
public virtual TeamFoundationRequestContext To(
    TeamFoundationHostType hostType
)

参数

返回值

类型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
可以在 targetServiceHost 中的 requestContext。

.NET Framework 安全性

请参阅

参考

TeamFoundationRequestContext 类

Microsoft.TeamFoundation.Framework.Server 命名空间