SqlSyncTableProvisioning.Apply Method (SqlConnection)
Note: This API is now obsolete.
Applies the provisioning script to a SQL Server database over the specified connection.
Namespace: Microsoft.Synchronization.Data.SqlServer
Assembly: Microsoft.Synchronization.Data.SqlServer (in Microsoft.Synchronization.Data.SqlServer.dll)
Syntax
'Declaration
<ObsoleteAttribute("Use Connection property or constructor and Apply()")> _
Public Sub Apply ( _
connection As SqlConnection _
)
'Usage
Dim instance As SqlSyncTableProvisioning
Dim connection As SqlConnection
instance.Apply(connection)
[ObsoleteAttribute("Use Connection property or constructor and Apply()")]
public void Apply(
SqlConnection connection
)
[ObsoleteAttribute(L"Use Connection property or constructor and Apply()")]
public:
void Apply(
SqlConnection^ connection
)
[<ObsoleteAttribute("Use Connection property or constructor and Apply()")>]
member Apply :
connection:SqlConnection -> unit
public function Apply(
connection : SqlConnection
)
Parameters
- connection
Type: System.Data.SqlClient.SqlConnection
A connection to the database.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | connection is null reference (Nothing in Visual Basic). |
ArgumentException | FilterColumns is empty and FilterClause is empty or null reference (Nothing in Visual Basic). |
InvalidOperationException | Another transaction is already open on connection. |