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
)
new : 
        tableMetadata:SyncTableMetadata * 
        syncConflict:SyncConflict * 
        error:Exception * 
        syncSession:SyncSession * 
        syncContext:SyncContext * 
        connection:IDbConnection * 
        transaction:IDbTransaction -> ApplyChangeFailedEventArgs
public function ApplyChangeFailedEventArgs(
    tableMetadata : SyncTableMetadata, 
    syncConflict : SyncConflict, 
    error : Exception, 
    syncSession : SyncSession, 
    syncContext : SyncContext, 
    connection : IDbConnection, 
    transaction : IDbTransaction
)

参数

异常

异常 条件
ArgumentNullException

tableMetadata、 syncConflict、syncSession 或 syncContext 为 null Nothing nullptr unit null 引用(在 Visual Basic 中为 Nothing) 。

请参阅

参考

ApplyChangeFailedEventArgs类

ApplyChangeFailedEventArgs 成员

Microsoft.Synchronization.Data 命名空间