Поделиться через


TeamFoundationRequestContext.To Method

To is used to retrieve a requestContext that can be used to execute in a different service host.

The root requestContext owns this context; therefore, the requestContext should not be disposed when the caller has finished with it. It will be disposed when the owning context is disposed.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Overridable Function To ( _
    hostType As TeamFoundationHostType _
) As TeamFoundationRequestContext
public virtual TeamFoundationRequestContext To(
    TeamFoundationHostType hostType
)
public:
virtual TeamFoundationRequestContext^ To(
    TeamFoundationHostType hostType
)
abstract To : 
        hostType:TeamFoundationHostType -> TeamFoundationRequestContext  
override To : 
        hostType:TeamFoundationHostType -> TeamFoundationRequestContext
public function To(
    hostType : TeamFoundationHostType
) : TeamFoundationRequestContext

Parameters

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
A requestContext that can be used in the context of the targetServiceHost.

.NET Framework Security

See Also

Reference

TeamFoundationRequestContext Class

Microsoft.TeamFoundation.Framework.Server Namespace