DatabaseProvider Class
Represents the base class that needs to be implemented in order to manage a database.
Inheritance Hierarchy
System.Object
Microsoft.Web.Management.DatabaseManager.DatabaseProvider
Namespace: Microsoft.Web.Management.DatabaseManager
Assembly: Microsoft.Web.Management.DatabaseManager (in Microsoft.Web.Management.DatabaseManager.dll)
Syntax
'Declaration
Public MustInherit Class DatabaseProvider _
Implements IServiceProvider
'Usage
Dim instance As DatabaseProvider
public abstract class DatabaseProvider : IServiceProvider
public ref class DatabaseProvider abstract : IServiceProvider
public abstract class DatabaseProvider implements IServiceProvider
The DatabaseProvider type exposes the following members.
Constructors
Method Type | Name | Description |
---|---|---|
DatabaseProvider | Creates a new instance of the DatabaseProvider class. |
Properties
Property Type | Name | Description |
---|---|---|
ConnectionStringArguments | Gets a collection that contains the collection of database connection arguments. |
Methods
Method Type | Name | Description |
---|---|---|
CalculateConnectionString | Returns the calculated connection string for the database provider. | |
Equals | (Inherited from Object.) | |
ExecuteQuery | Returns an array of query results after executing a database query. | |
Finalize | (Inherited from Object.) | |
GetDatabaseHostName | Returns the host name of the computer where the database in the connection string is located. | |
GetDatabaseInfo | Returns database-specific information for the database provider. | |
GetHashCode | (Inherited from Object.) | |
GetServerTypes | Returns the list of supported server types for a database provider. | |
GetService | Returns the service object for a database provider. | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
TestConnection | Tests a connection string for a database provider. | |
ToString | (Inherited from Object.) | |
VerifyDependencies | Verifies the database dependencies for your provider. |
Remarks
When writing a database provider, your provider must implement the base DatabaseProvider class and must also implement the following abstract members:
Note
See the Notes for Implementers section in the Microsoft.Web.Management.DatabaseManager topic for instructions about how to register your database provider for use with IIS Manager.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
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