BehaviorEditorPart.SyncChanges 方法

定义

WebPart 控件检索属性值并将这些属性值分配给关联 BehaviorEditorPart 控件。Retrieves the property values from a WebPart control and assigns them to the associated BehaviorEditorPart control.

public:
 override void SyncChanges();
public override void SyncChanges ();
override this.SyncChanges : unit -> unit
Public Overrides Sub SyncChanges ()

注解

SyncChanges方法是控件上的关键方法 BehaviorEditorPartThe SyncChanges method is a critical method on a BehaviorEditorPart control. 它实现基类中的 SyncChanges 方法,检索关联控件中的当前值 WebPart ,并使用这些值更新控件中的控件, BehaviorEditorPart 以便用户可以对其进行编辑。It implements the SyncChanges method from the base class, retrieves the current values from the associated WebPart control, and updates the controls in the BehaviorEditorPart control with those values so a user can edit them.

SyncChanges只要关联控件中的值发生更改,就会调用方法 WebPartThe SyncChanges method is called whenever the values in the associated WebPart control might have changed. 对于 BehaviorEditorPart 控件, EditorZoneBase 包含控件的区域将调用 SyncChanges 方法,以使控件中的值 BehaviorEditorPart 始终与关联控件中的值同步 WebPartFor a BehaviorEditorPart control, the EditorZoneBase zone that contains the control calls the SyncChanges method, so that the values in the BehaviorEditorPart control are always synchronized with the values in the associated WebPart control.

适用于

另请参阅