Reference for Team Foundation Server SDK
TeamFoundationServer.GetService Method

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
Visual Basic (Usage)
Dim instance As TeamFoundationServer
Dim serviceType As Type
Dim returnValue As Object

returnValue = instance.GetService(serviceType)
C#
public Object GetService (
	Type serviceType
)
C++
public:
virtual Object^ GetService (
	Type^ serviceType
) sealed
J#
public final Object GetService (
	Type serviceType
)
JScript
public final function GetService (
	serviceType : Type
) : Object

Parameters

serviceType

The type of service to retrieve.

See Also

Tags :


Page view tracker