Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
hostType
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationHostTypeThe type of host to target the requestContext towards.
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
A requestContext that can be used in the context of the targetServiceHost.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.