Share via


DatabaseInfo.SupportsSchemas Property

Specifies whether the database supports schemas.

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

Syntax

'Declaration
Public Property SupportsSchemas As Boolean
'Usage
Dim instance As DatabaseInfo
Dim value As Boolean

value = instance.SupportsSchemas

instance.SupportsSchemas = value
public bool SupportsSchemas { get; set; }
public:
property bool SupportsSchemas {
    bool get ();
    void set (bool value);
}
function get SupportsSchemas () : boolean
function set SupportsSchemas (value : boolean)

Property Value

Type: System.Boolean
true if the database supports schemas; otherwise, false.

Remarks

Your provider must implement the GetDatabaseInfo method to return a DatabaseInfo object for your provider. This object should indicate whether your database supports schemas.

Note

The schema support for a provider varies greatly between database servers; you must consult the documentation for your database server in order to determine schema support for your provider.

Examples

The following code sample illustrates a sample 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


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

Permissions

See Also

Reference

DatabaseInfo Class

Microsoft.Web.Management.DatabaseManager Namespace