This documentation is archived and is not being maintained.

TeamFoundationServer::GetService<T> Method

Gets the specified service.

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

public:
generic<typename T>
virtual T GetService()

Type Parameters

T

The type of service to retrieve.

Return Value

Type: T
The instance of the specified service. Null if the service could not be found.

Show: