Delen via


ServicesPackage.GetService<T, S> Method

Namespace:  Microsoft.VisualStudio.Services.Integration
Assembly:  Microsoft.VisualStudio.Services.Integration (in Microsoft.VisualStudio.Services.Integration.dll)

Syntax

'Declaration
Public Function GetService(Of T, S) As S
public S GetService<T, S>()
public:
generic<typename T, typename S>
S GetService()
member GetService : unit -> 'S 
JScript does not support generic types or methods.

Type Parameters

  • T
  • S

Return Value

Type: S

.NET Framework Security

See Also

Reference

ServicesPackage Class

GetService Overload

Microsoft.VisualStudio.Services.Integration Namespace