SqlCeChangeTracking Constructor (SqlCeConnection)
Initializes a new instance of the SqlCeChangeTracking class with a SqlCeConnection.
Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)
Syntax
'Declaration
Public Sub New ( _
connection As SqlCeConnection _
)
'Usage
Dim connection As SqlCeConnection
Dim instance As New SqlCeChangeTracking(connection)
public SqlCeChangeTracking(
SqlCeConnection connection
)
public:
SqlCeChangeTracking(
SqlCeConnection^ connection
)
new :
connection:SqlCeConnection -> SqlCeChangeTracking
public function SqlCeChangeTracking(
connection : SqlCeConnection
)
Parameters
- connection
Type: System.Data.SqlServerCe. . :: . .SqlCeConnection
A SqlCeConnection that represents the connection to a data source.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | connection is null. |
InvalidOperationException | The connection is not open. |
Remarks
Creates a tracking object for the specified data source. If the connection is not currently enlisted in a transaction, a local transaction is created and the connection is enlisted in it.