提供用于检索特定类型的服务提供实现。
命名空间: Microsoft.VisualStudio.Data
程序集: Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.dll 中)
语法
声明
Protected Overridable Function GetServiceImpl ( _
serviceType As Type _
) As Object
protected virtual Object GetServiceImpl(
Type serviceType
)
protected:
virtual Object^ GetServiceImpl(
Type^ serviceType
)
abstract GetServiceImpl :
serviceType:Type -> Object
override GetServiceImpl :
serviceType:Type -> Object
protected function GetServiceImpl(
serviceType : Type
) : Object
参数
- serviceType
类型:System.Type
服务类型。
返回值
类型:System.Object
;如果未找到,返回指定类型的服务或返回 nullnull 引用(在 Visual Basic 中为 Nothing) 服务。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。