Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- 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.