SimpleSyncProvider.ItemConstraint イベント

処理中の項目が制約の競合に関係していることが Sync Framework によって検出された場合に発生します。

名前空間: Microsoft.Synchronization.SimpleProviders
アセンブリ: Microsoft.Synchronization.SimpleProviders (microsoft.synchronization.simpleproviders.dll 内)

構文

'宣言
Public Event ItemConstraint As EventHandler(Of SimpleSyncItemConstraintEventArgs)
'使用
Dim instance As SimpleSyncProvider
Dim handler As EventHandler(Of SimpleSyncItemConstraintEventArgs)

AddHandler instance.ItemConstraint, handler
public event EventHandler<SimpleSyncItemConstraintEventArgs> ItemConstraint
public:
event EventHandler<SimpleSyncItemConstraintEventArgs^>^ ItemConstraint {
    void add (EventHandler<SimpleSyncItemConstraintEventArgs^>^ value);
    void remove (EventHandler<SimpleSyncItemConstraintEventArgs^>^ value);
}
/** @event */
public void add_ItemConstraint (EventHandler<SimpleSyncItemConstraintEventArgs> value)

/** @event */
public void remove_ItemConstraint (EventHandler<SimpleSyncItemConstraintEventArgs> value)
JScript supports the use of events, but not the declaration of new ones.

解説

このイベントは、制約の競合に使用されます。制約の競合は、同期元プロバイダーが同期先レプリカに既に存在するファイルと同じ名前および場所のファイルを送信する場合など、同期先のストアにある別の項目との競合が原因で項目を保存できない場合に発生します。詳細については、「簡易プロバイダーの競合処理」を参照してください。

参照

リファレンス

SimpleSyncProvider クラス
SimpleSyncProvider メンバー
Microsoft.Synchronization.SimpleProviders 名前空間