次の方法で共有


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 は、変更適用元に送信される変更バッチ内の変更ごとに 1 回呼び出されます。

参照

リファレンス

INotifyingChangeApplierTarget インターフェイス
INotifyingChangeApplierTarget メンバ
Microsoft.Synchronization 名前空間