TeamFoundationRequestContext.GetClient<T> Method

Get an instance of the client specified by Type T.

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

Syntax

'Declaration
Public Overridable Function GetClient(Of T As VssHttpClientBase) As T
public virtual T GetClient<T>()
where T : VssHttpClientBase
public:
generic<typename T>
where T : VssHttpClientBase 
virtual T GetClient()
abstract GetClient : unit -> 'T  when 'T : VssHttpClientBase 
override GetClient : unit -> 'T  when 'T : VssHttpClientBase
JScript does not support generic types or methods.

Type Parameters

  • T
    Class type of the object to retrieve. Class must inherit from VssHttpClient, be non-abstract and have a constructor acccepting (Uri, VssCredentials, params DelegatingHandler[]).

Return Value

Type: T
Returns an instance of the object specified by Type T associated with this request.

.NET Framework Security

See Also

Reference

TeamFoundationRequestContext Class

GetClient Overload

Microsoft.TeamFoundation.Framework.Server Namespace