ApplyMetadataFailedEventArgs Constructor
Initializes a new instance of the ApplyMetadataFailedEventArgs class by using data row, exception, session, context, connection, and transaction parameters.
Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)
Syntax
'Declaration
Public Sub New ( _
change As DataRow, _
error As Exception, _
session As DbSyncSession, _
context As DbSyncContext, _
connection As IDbConnection, _
transaction As IDbTransaction _
)
'Usage
Dim change As DataRow
Dim error As Exception
Dim session As DbSyncSession
Dim context As DbSyncContext
Dim connection As IDbConnection
Dim transaction As IDbTransaction
Dim instance As New ApplyMetadataFailedEventArgs(change, _
error, session, context, connection, _
transaction)
public ApplyMetadataFailedEventArgs(
DataRow change,
Exception error,
DbSyncSession session,
DbSyncContext context,
IDbConnection connection,
IDbTransaction transaction
)
public:
ApplyMetadataFailedEventArgs(
DataRow^ change,
Exception^ error,
DbSyncSession^ session,
DbSyncContext^ context,
IDbConnection^ connection,
IDbTransaction^ transaction
)
new :
change:DataRow *
error:Exception *
session:DbSyncSession *
context:DbSyncContext *
connection:IDbConnection *
transaction:IDbTransaction -> ApplyMetadataFailedEventArgs
public function ApplyMetadataFailedEventArgs(
change : DataRow,
error : Exception,
session : DbSyncSession,
context : DbSyncContext,
connection : IDbConnection,
transaction : IDbTransaction
)
Parameters
- change
Type: System.Data.DataRow
A DataRow object that contains the data row where the error occurred.
- error
Type: System.Exception
An Exception object that contains metadata about any exceptions that occurred during synchronization.
- session
Type: Microsoft.Synchronization.Data.DbSyncSession
A DbSyncSession object that contains metadata about the current synchronization session.
- context
Type: Microsoft.Synchronization.Data.DbSyncContext
A DbSyncContext object that contains data changes, anchor values, and other metadata for a synchronization session.
- connection
Type: System.Data.IDbConnection
An IDbConnection object that contains a connection to the peer database.
- transaction
Type: System.Data.IDbTransaction
An IDbTransaction object that contains the transaction within which changes to metadata were attempted.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | change, session, or context is a null reference (Nothing in Visual Basic). |