ApplyChangeFailedEventArgs 构造函数

使用表元数据、冲突、错误、会话、上下文、连接和事务参数初始化 ApplyChangeFailedEventArgs 类的一个新实例。

命名空间: Microsoft.Synchronization.Data
程序集: Microsoft.Synchronization.Data(在 microsoft.synchronization.data.dll 中)

语法

声明
Public Sub New ( _
    tableMetadata As SyncTableMetadata, _
    syncConflict As SyncConflict, _
    error As Exception, _
    syncSession As SyncSession, _
    syncContext As SyncContext, _
    connection As IDbConnection, _
    transaction As IDbTransaction _
)
用法
Dim tableMetadata As SyncTableMetadata
Dim syncConflict As SyncConflict
Dim error As Exception
Dim syncSession As SyncSession
Dim syncContext As SyncContext
Dim connection As IDbConnection
Dim transaction As IDbTransaction

Dim instance As New ApplyChangeFailedEventArgs(tableMetadata, syncConflict, error, syncSession, syncContext, connection, transaction)
public ApplyChangeFailedEventArgs (
    SyncTableMetadata tableMetadata,
    SyncConflict syncConflict,
    Exception error,
    SyncSession syncSession,
    SyncContext syncContext,
    IDbConnection connection,
    IDbTransaction transaction
)
public:
ApplyChangeFailedEventArgs (
    SyncTableMetadata^ tableMetadata, 
    SyncConflict^ syncConflict, 
    Exception^ error, 
    SyncSession^ syncSession, 
    SyncContext^ syncContext, 
    IDbConnection^ connection, 
    IDbTransaction^ transaction
)
public ApplyChangeFailedEventArgs (
    SyncTableMetadata tableMetadata, 
    SyncConflict syncConflict, 
    Exception error, 
    SyncSession syncSession, 
    SyncContext syncContext, 
    IDbConnection connection, 
    IDbTransaction transaction
)
public function ApplyChangeFailedEventArgs (
    tableMetadata : SyncTableMetadata, 
    syncConflict : SyncConflict, 
    error : Exception, 
    syncSession : SyncSession, 
    syncContext : SyncContext, 
    connection : IDbConnection, 
    transaction : IDbTransaction
)

参数

  • syncConflict
    一个 SyncConflict 对象,它包含有关在同步期间发生的冲突的元数据。
  • error
    一个 Exception 对象,它包含有关在同步期间发生的任何异常的元数据。
  • syncSession
    包含有关当前同步会话的元数据的 SyncSession 对象。
  • syncContext
    包含同步会话的数据变更、定位点值和其他元数据的 SyncContext 对象。
  • connection
    包含到客户端或服务器数据库的连接的 IDbConnection 对象。
  • transaction
    包含特定事务(在此事务中尝试对表进行变更)的 IDbTransaction 对象。

请参阅

参考

ApplyChangeFailedEventArgs 类
ApplyChangeFailedEventArgs 成员
Microsoft.Synchronization.Data 命名空间