IComponentModel.GetService<T> Method

Namespace:  Microsoft.VisualStudio.ComponentModelHost
Assembly:  Microsoft.VisualStudio.ComponentModelHost (in Microsoft.VisualStudio.ComponentModelHost.dll)

Syntax

声明
Function GetService(Of T As Class) As T
T GetService<T>()
where T : class
generic<typename T>
where T : ref class
T GetService()
abstract GetService : unit -> 'T  when 'T : not struct
JScript does not support generic types or methods.

Type Parameters

  • T

Return Value

Type: T

.NET Framework Security

See Also

Reference

IComponentModel Interface

Microsoft.VisualStudio.ComponentModelHost Namespace