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
)
参数
- localSyncKnowledge
类型:Microsoft.Synchronization. . :: . .SyncKnowledge
包含本地提供程序的知识的 SyncKnowledge 对象。
- localCleanupKnowledge
类型:Microsoft.Synchronization. . :: . .SyncKnowledge
包含本地提供程序的清除知识的 SyncKnowledge 对象。
- remoteSyncKnowledge
类型:Microsoft.Synchronization. . :: . .SyncKnowledge
包含远程提供程序的知识的 SyncKnowledge 对象。
- session
类型:Microsoft.Synchronization.Data. . :: . .DbSyncSession
包含有关当前同步会话的元数据的 DbSyncSession 对象。
异常
异常 | 条件 |
---|---|
ArgumentNullException | session 为 null Nothing nullptr unit null 引用(在 Visual Basic 中为 Nothing) 。 |