ServiceProvider.GetServiceImpl 方法 (Guid)

为检索服务提供该实现以特定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

参数

返回值

类型:System.Object
;如果未找到,则返回使用已指定的服务GUID的服务或返回 nullnull 引用(在 Visual Basic 中为 Nothing) 服务。

备注

调用此方法,仅当 IServiceProvider 对象提供一个服务提供程序,而对服务GUID不映射到已知的 Type

.NET Framework 安全性

请参见

参考

ServiceProvider 类

GetServiceImpl 重载

Microsoft.VisualStudio.Data 命名空间