使用数据行、异常、会话、上下文、连接和事务参数初始化 ApplyMetadataFailedEventArgs 类的一个新实例。
命名空间: Microsoft.Synchronization.Data
程序集: Microsoft.Synchronization.Data(在 microsoft.synchronization.data.dll 中)
语法
声明
Public Sub New ( _
    change As DataRow, _
    error As Exception, _
    session As DbSyncSession, _
    context As DbSyncContext, _
    connection As IDbConnection, _
    transaction As IDbTransaction _
)
用法
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
)
public ApplyMetadataFailedEventArgs (
    DataRow change, 
    Exception error, 
    DbSyncSession session, 
    DbSyncContext context, 
    IDbConnection connection, 
    IDbTransaction transaction
)
public function ApplyMetadataFailedEventArgs (
    change : DataRow, 
    error : Exception, 
    session : DbSyncSession, 
    context : DbSyncContext, 
    connection : IDbConnection, 
    transaction : IDbTransaction
)
参数
- change
 包含出错数据行的 DataRow 对象。
- error
 一个 Exception 对象,它包含有关在同步期间发生的异常的元数据。
- session
 包含有关当前同步会话的元数据的 DbSyncSession 对象。
- context
 包含同步会话的数据变更、定位点值和其他元数据的 DbSyncContext 对象。
- connection
 包含到对等数据库的连接的 IDbConnection 对象。
- transaction
 包含特定事务(在此事务中尝试变更元数据)的 IDbTransaction 对象。
请参阅
参考
ApplyMetadataFailedEventArgs 类
ApplyMetadataFailedEventArgs 成员
Microsoft.Synchronization.Data 命名空间