DatabaseProvider.GetService Method

Returns the service object for a database provider.

Namespace:  Microsoft.Web.Management.DatabaseManager
Assembly:  Microsoft.Web.Management.DatabaseManager (in Microsoft.Web.Management.DatabaseManager.dll)

Syntax

'Declaration
Public Overridable Function GetService ( _
    serviceType As Type _
) As Object
'Usage
Dim instance As DatabaseProvider
Dim serviceType As Type
Dim returnValue As Object

returnValue = instance.GetService(serviceType)
public virtual Object GetService(
    Type serviceType
)
public:
virtual Object^ GetService(
    Type^ serviceType
)
public function GetService(
    serviceType : Type
) : Object

Parameters

  • serviceType
    Type: System.Type
    The service type for the database provider.

Return Value

Type: System.Object
The service object for a database provider.

Implements

IServiceProvider.GetService(Type)

Remarks

Your provider may optionally implement the GetService method to return the system type for your database provider.

Permissions

See Also

Reference

DatabaseProvider Class

Microsoft.Web.Management.DatabaseManager Namespace