Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the specified service.
Namespace: Microsoft.TeamFoundation.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaration
Public Overridable Function GetService(Of T) As T
public virtual T GetService<T>()
public:
generic<typename T>
virtual T GetService()
abstract GetService : unit -> 'T
override GetService : unit -> 'T
JScript does not support generic types or methods.
Type Parameters
- T
The type of service to retrieve.
Return Value
Type: T
The instance of the specified service. Null if the service could not be found.
.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.