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
- familyName
Type: System.String
The provider family name.
- connectionString
Type: System.String
The database connection string.
Return Value
Type: System.Type
The appropriate type of provider.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.