DbChangesAppliedEventArgs 构造函数

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

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

语法

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

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

参数

异常

异常 条件
ArgumentNullException

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

请参阅

参考

DbChangesAppliedEventArgs类

DbChangesAppliedEventArgs 成员

Microsoft.Synchronization.Data 命名空间