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
- 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.
See Also
Reference
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for