CustomPropertyToolPart.SyncChanges Method
Called after the ApplyChanges method has successfully applied all property changes to the instantiated Web Part on the server to allow a refresh of the tool parts displayed in the tool pane.
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 CustomPropertyToolPart
instance.SyncChanges()
public override void SyncChanges()
Remarks
The SyncChanges method is invoked only from the properties view of the tool pane.
The SyncChanges method causes the properties view to retrieve and display the latest property values, instead of populating them from the viewstate. This may be useful when a Web Part has directly modified a property displayed in the tool pane, for example.
You should also call the SyncChanges method from within the GetToolParts method of the WebPart class when using CustomPropertyToolPart objects.