ProjectPackage.GetService<TServiceType> 方法 (Type)

该类及其成员保留供内部使用,不应在代码中使用。

命名空间:  Microsoft.VisualStudio.Data.Schema.Package.Project.Internal
程序集:  Microsoft.VisualStudio.Data.Schema.Package(在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)

语法

声明
Public Function GetService(Of TServiceType) ( _
    serviceType As Type _
) As TServiceType
public TServiceType GetService<TServiceType>(
    Type serviceType
)
public:
generic<typename TServiceType>
TServiceType GetService(
    Type^ serviceType
)
member GetService : 
        serviceType:Type -> 'TServiceType 
JScript 不支持泛型类型或方法。

类型参数

  • TServiceType

参数

返回值

类型:TServiceType
服务对象。

.NET Framework 安全性

请参见

参考

ProjectPackage 类

GetService 重载

Microsoft.VisualStudio.Data.Schema.Package.Project.Internal 命名空间