DbApplyingChangesEventArgs 构造函数 (DbSyncScopeMetadata, DataSet, DbSyncSession, DbSyncContext, IDbConnection, IDbTransaction)

使用作用域元数据、数据集、会话、上下文、连接和事务参数初始化 DbApplyingChangesEventArgs 类的一个新实例。

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

语法

声明
Public Sub New ( _
    scopeMetadata As DbSyncScopeMetadata, _
    changes As DataSet, _
    session As DbSyncSession, _
    context As DbSyncContext, _
    connection As IDbConnection, _
    transaction As IDbTransaction _
)
用法
Dim scopeMetadata As DbSyncScopeMetadata
Dim changes As DataSet
Dim session As DbSyncSession
Dim context As DbSyncContext
Dim connection As IDbConnection
Dim transaction As IDbTransaction

Dim instance As New DbApplyingChangesEventArgs(scopeMetadata, _
    changes, session, context, connection, _
    transaction)
public DbApplyingChangesEventArgs(
    DbSyncScopeMetadata scopeMetadata,
    DataSet changes,
    DbSyncSession session,
    DbSyncContext context,
    IDbConnection connection,
    IDbTransaction transaction
)
public:
DbApplyingChangesEventArgs(
    DbSyncScopeMetadata^ scopeMetadata, 
    DataSet^ changes, 
    DbSyncSession^ session, 
    DbSyncContext^ context, 
    IDbConnection^ connection, 
    IDbTransaction^ transaction
)
new : 
        scopeMetadata:DbSyncScopeMetadata * 
        changes:DataSet * 
        session:DbSyncSession * 
        context:DbSyncContext * 
        connection:IDbConnection * 
        transaction:IDbTransaction -> DbApplyingChangesEventArgs
public function DbApplyingChangesEventArgs(
    scopeMetadata : DbSyncScopeMetadata, 
    changes : DataSet, 
    session : DbSyncSession, 
    context : DbSyncContext, 
    connection : IDbConnection, 
    transaction : IDbTransaction
)

参数

异常

异常 条件
ArgumentNullException

scopeMetaData、changes、session 或 context 为 null Nothing nullptr unit null 引用(在 Visual Basic 中为 Nothing) 。

请参阅

参考

DbApplyingChangesEventArgs类

DbApplyingChangesEventArgs 成员

DbApplyingChangesEventArgs 重载

Microsoft.Synchronization.Data 命名空间