共用方式為


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 命名空間