Returns an instance of the specified service. Returns a null reference (
Nothing in Visual Basic) if the service could not be found.
Namespace: Microsoft.TeamFoundation.Client
Assembly: Microsoft.TeamFoundation.Client (in microsoft.teamfoundation.client.dll)

Syntax
Visual Basic (Declaration)
Public Function GetService ( _
serviceType As Type _
) As Object
Dim instance As TeamFoundationServer
Dim serviceType As Type
Dim returnValue As Object
returnValue = instance.GetService(serviceType)
public Object GetService (
Type serviceType
)
public:
virtual Object^ GetService (
Type^ serviceType
) sealed
public final Object GetService (
Type serviceType
)
public final function GetService (
serviceType : Type
) : Object
Parameters
- serviceType
The type of service to retrieve.

See Also