Share via


ComponentContainer.GetService Method

Retrieves the service object of the specified type.

Namespace:  Microsoft.SqlServer.Management.Controls
Assembly:  Microsoft.SqlServer.Management.Controls (in Microsoft.SqlServer.Management.Controls.dll)

Syntax

'Declaration
Protected Overrides Function GetService ( _
    service As Type _
) As Object
'Usage
Dim service As Type
Dim returnValue As Object

returnValue = Me.GetService(service)
protected override Object GetService(
    Type service
)
protected:
virtual Object^ GetService(
    Type^ service
) override
abstract GetService : 
        service:Type -> Object 
override GetService : 
        service:Type -> Object 
protected override function GetService(
    service : Type
) : Object

Parameters

  • service
    Type: System.Type
    An object that specifies the type of service object to get.

Return Value

Type: System.Object
An object implementing the requested service, or a null reference if the service cannot be resolved.