TeamFoundationRequestContext.GetService<T> Method

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Function GetService(Of T As {Class, ITeamFoundationService}) As T
public T GetService<T>()
where T : class, ITeamFoundationService
public:
generic<typename T>
where T : ref class, ITeamFoundationService
T GetService()
member GetService : unit -> 'T  when 'T : not struct and ITeamFoundationService
JScript does not support generic types or methods.

Type Parameters

  • T

Return Value

Type: T

.NET Framework Security

See Also

Reference

TeamFoundationRequestContext Class

Microsoft.TeamFoundation.Framework.Server Namespace