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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.