DataProviderFactory.CreateSource Method
Instantiates a new source instance.
Namespace: Microsoft.SqlServerCe.Management.Scripting
Assembly: Microsoft.SqlServerCe.Management.Scripting (in Microsoft.SqlServerCe.Management.Scripting.dll)
Syntax
'Declaration
Public Shared Function CreateSource ( _
connectionString As String, _
providerType As ProviderType _
) As IDataSource
'Usage
Dim connectionString As String
Dim providerType As ProviderType
Dim returnValue As IDataSource
returnValue = DataProviderFactory.CreateSource(connectionString, _
providerType)
public static IDataSource CreateSource(
string connectionString,
ProviderType providerType
)
public:
static IDataSource^ CreateSource(
String^ connectionString,
ProviderType providerType
)
static member CreateSource :
connectionString:string *
providerType:ProviderType -> IDataSource
public static function CreateSource(
connectionString : String,
providerType : ProviderType
) : IDataSource
Parameters
- connectionString
Type: System.String
The connection string.
- providerType
Type: Microsoft.SqlServerCe.Management.Scripting.ProviderType
The provider type.
Return Value
Type: Microsoft.SqlServerCe.Management.Scripting.IDataSource
A new source instance.