ServiceProvider.GetServiceImpl Method (Type)

Provides the implementation for retrieving a service of a specific type.

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

Syntax

'宣言
Protected Overridable Function GetServiceImpl ( _
    serviceType As Type _
) As Object
'使用
Dim serviceType As Type
Dim returnValue As Object

returnValue = Me.GetServiceImpl(serviceType)
protected virtual Object GetServiceImpl(
    Type serviceType
)
protected:
virtual Object^ GetServiceImpl(
    Type^ serviceType
)
protected function GetServiceImpl(
    serviceType : Type
) : Object

Parameters

Return Value

Type: System.Object

Returns the service of the specified type, or returns a null reference (Nothing in Visual Basic) if no service was found.

Permissions

See Also

Reference

ServiceProvider Class

ServiceProvider Members

GetServiceImpl Overload

Microsoft.VisualStudio.Data Namespace

IServiceProvider