Share via


DatabaseSchemaProvider.GetCompatibleDatabaseSchemaProviderType Method

Returns the Type that represents the type of provider that is appropriate for the version of the database pointed to by the provided connection string, and for the provided family name.

Namespace:  Microsoft.Data.Schema
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Shared Function GetCompatibleDatabaseSchemaProviderType ( _
    familyName As String, _
    connectionString As String _
) As Type
public static Type GetCompatibleDatabaseSchemaProviderType(
    string familyName,
    string connectionString
)
public:
static Type^ GetCompatibleDatabaseSchemaProviderType(
    String^ familyName, 
    String^ connectionString
)
static member GetCompatibleDatabaseSchemaProviderType : 
        familyName:string * 
        connectionString:string -> Type 
public static function GetCompatibleDatabaseSchemaProviderType(
    familyName : String, 
    connectionString : String
) : Type

Parameters

  • connectionString
    Type: System.String
    The database connection string.

Return Value

Type: System.Type
The appropriate type of provider.

.NET Framework Security

See Also

Reference

DatabaseSchemaProvider Class

Microsoft.Data.Schema Namespace