共用方式為


ISimpleSyncProviderConstraintConflictResolver.ModifyLocalItem 方法

在衍生類別中覆寫時,會重新命名本機項目,讓它不再與遠端項目名稱發生衝突。

命名空間: Microsoft.Synchronization.SimpleProviders
組件: Microsoft.Synchronization.SimpleProviders (在 microsoft.synchronization.simpleproviders.dll)

語法

'宣告
Sub ModifyLocalItem ( _
    keyAndExpectedVersion As ItemFieldDictionary, _
    recoverableErrorReportingContext As RecoverableErrorReportingContext, _
    <OutAttribute> ByRef updatedKeyAndVersion As ItemFieldDictionary _
)
'用途
Dim instance As ISimpleSyncProviderConstraintConflictResolver
Dim keyAndExpectedVersion As ItemFieldDictionary
Dim recoverableErrorReportingContext As RecoverableErrorReportingContext
Dim updatedKeyAndVersion As ItemFieldDictionary

instance.ModifyLocalItem(keyAndExpectedVersion, recoverableErrorReportingContext, updatedKeyAndVersion)
void ModifyLocalItem (
    ItemFieldDictionary keyAndExpectedVersion,
    RecoverableErrorReportingContext recoverableErrorReportingContext,
    out ItemFieldDictionary updatedKeyAndVersion
)
void ModifyLocalItem (
    ItemFieldDictionary^ keyAndExpectedVersion, 
    RecoverableErrorReportingContext^ recoverableErrorReportingContext, 
    [OutAttribute] ItemFieldDictionary^% updatedKeyAndVersion
)
void ModifyLocalItem (
    ItemFieldDictionary keyAndExpectedVersion, 
    RecoverableErrorReportingContext recoverableErrorReportingContext, 
    /** @attribute OutAttribute() */ /** @ref */ ItemFieldDictionary updatedKeyAndVersion
)
JScript does not support passing value-type arguments by reference.

參數

  • keyAndExpectedVersion
    發生衝突之項目的索引鍵和版本屬性。
  • updatedKeyAndVersion
    傳回由於衝突解決所修改的索引鍵和版本屬性。

請參閱

參考

ISimpleSyncProviderConstraintConflictResolver 介面
ISimpleSyncProviderConstraintConflictResolver 成員
Microsoft.Synchronization.SimpleProviders 命名空間