Click to Rate and Give Feedback
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
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)

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.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker