Export (0) Print
Expand All

DatabaseProvider.GetDatabaseInfo Method

IIS 7.0

Returns database-specific information for the database provider.

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

public abstract DatabaseInfo GetDatabaseInfo(
	string connectionString
)

Parameters

connectionString
Type: System.String
The connection string for the database connection.

Your provider must implement the GetDatabaseInfo method in order to return connection-specific information about a database.

The following code sample illustrates an example GetDatabaseInfo method that returns a DatabaseInfo object that identifies the database provider for schema support.



        public override DatabaseInfo GetDatabaseInfo(
            string connectionString )
        {
            DatabaseInfo info = new DatabaseInfo();
            info.SupportsSchemas = true;
            return info;
        }



Show:
© 2014 Microsoft