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
serviceType
Type: System.TypeA service type.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.