INotifyingChangeApplierTarget.TryGetDestinationVersion 方法

获取存储在目标副本中的项的版本。

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

语法

声明
Function TryGetDestinationVersion ( _
    sourceChange As ItemChange, _
    <OutAttribute> ByRef destinationVersion As ItemChange _
) As Boolean
用法
Dim instance As INotifyingChangeApplierTarget
Dim sourceChange As ItemChange
Dim destinationVersion As ItemChange
Dim returnValue As Boolean

returnValue = instance.TryGetDestinationVersion(sourceChange, destinationVersion)
bool TryGetDestinationVersion (
    ItemChange sourceChange,
    out ItemChange destinationVersion
)
bool TryGetDestinationVersion (
    ItemChange^ sourceChange, 
    [OutAttribute] ItemChange^% destinationVersion
)
boolean TryGetDestinationVersion (
    ItemChange sourceChange, 
    /** @attribute OutAttribute() */ /** @ref */ ItemChange destinationVersion
)
JScript does not support passing value-type arguments by reference.

参数

  • sourceChange
    源提供程序发送的项变更。
  • destinationVersion
    返回包含目标副本中的项版本的项变更。

返回值

如果在目标副本中找到该项,则返回 true;否则返回 false

备注

当目标版本未传递给 ApplyChanges 方法时,NotifyingChangeApplier 将调用此方法。对发送到变更应用方的变更批中的每个变更调用一次 TryGetDestinationVersion

请参阅

参考

INotifyingChangeApplierTarget 接口
INotifyingChangeApplierTarget 成员
Microsoft.Synchronization 命名空间