DbOutdatedEventArgs 构造函数

使用本地知识、本地清除知识、远程知识和会话参数初始化 DbOutdatedEventArgs 类的一个新实例。

此 API 不符合 CLS。 

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

语法

声明
<CLSCompliantAttribute(False)> _
Public Sub New ( _
    localSyncKnowledge As SyncKnowledge, _
    localCleanupKnowledge As SyncKnowledge, _
    remoteSyncKnowledge As SyncKnowledge, _
    session As DbSyncSession _
)
用法
Dim localSyncKnowledge As SyncKnowledge
Dim localCleanupKnowledge As SyncKnowledge
Dim remoteSyncKnowledge As SyncKnowledge
Dim session As DbSyncSession

Dim instance As New DbOutdatedEventArgs(localSyncKnowledge, _
    localCleanupKnowledge, remoteSyncKnowledge, _
    session)
[CLSCompliantAttribute(false)]
public DbOutdatedEventArgs(
    SyncKnowledge localSyncKnowledge,
    SyncKnowledge localCleanupKnowledge,
    SyncKnowledge remoteSyncKnowledge,
    DbSyncSession session
)
[CLSCompliantAttribute(false)]
public:
DbOutdatedEventArgs(
    SyncKnowledge^ localSyncKnowledge, 
    SyncKnowledge^ localCleanupKnowledge, 
    SyncKnowledge^ remoteSyncKnowledge, 
    DbSyncSession^ session
)
[<CLSCompliantAttribute(false)>]
new : 
        localSyncKnowledge:SyncKnowledge * 
        localCleanupKnowledge:SyncKnowledge * 
        remoteSyncKnowledge:SyncKnowledge * 
        session:DbSyncSession -> DbOutdatedEventArgs
public function DbOutdatedEventArgs(
    localSyncKnowledge : SyncKnowledge, 
    localCleanupKnowledge : SyncKnowledge, 
    remoteSyncKnowledge : SyncKnowledge, 
    session : DbSyncSession
)

参数

异常

异常 条件
ArgumentNullException

session 为 null Nothing nullptr unit null 引用(在 Visual Basic 中为 Nothing) 。

请参阅

参考

DbOutdatedEventArgs类

DbOutdatedEventArgs 成员

Microsoft.Synchronization.Data 命名空间