共用方式為


ToolPart.SyncChanges Method

When overridden in a derived class, this method is called after all other tool parts have called their ApplyChanges methods.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overrides Sub SyncChanges
'Usage
Dim instance As ToolPart

instance.SyncChanges()
public override void SyncChanges()

Remarks

The ToolPaneCalls the SyncChanges method for each tool part after all tool parts have successfully called the ApplyChanges method. A tool part should override the SyncChanges method with code to synchronize its user interface to the current values of any custom properties that affect its functionality, because other tool parts may have changed these values. If an error occurs when calling ApplyChanges, the ToolPane will not call SyncChanges for any tool parts. This may cause inconsistent values in the user interface. In this case, the user must resolve the erroneous property value(s) before the properties can be saved.

See Also

Reference

ToolPart Class

ToolPart Members

Microsoft.SharePoint.WebPartPages Namespace