共用方式為


ServicesPackage.GetService<T> Method

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

Syntax

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

Type Parameters

  • T

Return Value

Type: T

.NET Framework Security

See Also

Reference

ServicesPackage Class

GetService Overload

Microsoft.VisualStudio.Services.Integration Namespace