Which line of code should you insert at line 06?

You are creating a Microsoft Windows Mobilebased application by using the Microsoft .NET Framework 3.5 and Microsoft Synchronization Services for Microsoft ADO.NET.

You write the following code segment. (Line numbers are included for reference only.)

01 private void Init()
02 {
03 SyncConflictResolver scr = new SyncConflictResolver();
04 scr.ClientUpdateServerUpdateAction = ResolveAction.FireEvent;
05 SqlCeClientSyncProvider csp = new SqlCeClientSyncProvider();
06
07 }

You need to ensure that the application handles synchronization conflicts when data is updated in the database of the application.

Which line of code should you insert at line 06?

You are creating a Microsoft Windows Mobilebased application by using the Microsoft .NET Framework 3.5 and Microsoft Synchronization Services for Microsoft ADO.NET.

You write the following code segment. (Line numbers are included for reference only.)

01 private void Init()
02 {
03 SyncConflictResolver scr = new SyncConflictResolver();
04 scr.ClientUpdateServerUpdateAction = ResolveAction.FireEvent;
05 SqlCeClientSyncProvider csp = new SqlCeClientSyncProvider();
06
07 }

You need to ensure that the application handles synchronization conflicts when data is updated in the database of the application.

Which line of code should you insert at line 06?

A.
csp.ApplyingChanges += new EventHandler<ApplyingChangesEventArgs>(csp_ApplyingChanges);

B.
csp.SyncProgress += new EventHandler<SyncProgressEventArgs>(csp_SyncProgress);

C.
csp.ChangesApplied += new EventHandler<ChangesAppliedEventArgs>(csp_ChangesApplied);

D.
csp.ApplyChangeFailed += new EventHandler<ApplyChangeFailedEventArgs>(csp_ApplyChangeFailed);



Leave a Reply 0

Your email address will not be published. Required fields are marked *