DatabaseProvider..::.GetDatabaseInfo Method Home
.NET Framework Class Library
DatabaseProvider..::.GetDatabaseInfo Method

Returns database-specific information for the database provider.

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

'Usage

Dim instance As DatabaseProvider
Dim connectionString As String
Dim returnValue As DatabaseInfo

returnValue = instance.GetDatabaseInfo(connectionString)

'Declaration

Public MustOverride Function GetDatabaseInfo ( _
    connectionString As String _
) As DatabaseInfo

Parameters

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

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

Examples

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


    Public Overrides Function GetDatabaseInfo( _
            ByVal connectionString As String) _
            As Microsoft.Web.Management.DatabaseManager.DatabaseInfo

        Dim info As DatabaseInfo = New DatabaseInfo
        info.SupportsSchemas = True
        Return info

    End Function



Permissions

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .
See Also

Reference

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View