共用方式為


PluginHostPackage.GetService<T> Method

Namespace:  Microsoft.TeamFoundation.Common
Assembly:  Microsoft.VisualStudio.TeamFoundation.Client (in Microsoft.VisualStudio.TeamFoundation.Client.dll)

Syntax

'宣告
Public Function GetService(Of T) As T
public T GetService<T>()
public:
generic<typename T>
virtual T GetService() sealed
abstract GetService : unit -> 'T 
override GetService : unit -> 'T 
JScript does not support generic types or methods.

Type Parameters

  • T

Return Value

Type: T

.NET Framework Security

See Also

Reference

PluginHostPackage Class

GetService Overload

Microsoft.TeamFoundation.Common Namespace