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