TfsConnection.GetService<T> Method

Gets the requested service.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

声明
Public Overridable Function GetService(Of T) As T
public virtual T GetService<T>()
public:
generic<typename T>
virtual T GetService()
abstract GetService : unit -> 'T 
override GetService : unit -> 'T 
JScript does not support generic types or methods.

Type Parameters

  • T
    The type of service to retrieve.

Return Value

Type: T
An instance of the service that is requested if it could be found, or a null reference if it could not be found.

.NET Framework Security

See Also

Reference

TfsConnection Class

GetService Overload

Microsoft.TeamFoundation.Client Namespace