Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ApplyChanges Method
Collapse the table of content
Expand the table of content

BehaviorEditorPart.ApplyChanges Method

Saves the values from a BehaviorEditorPart control to the corresponding properties in the associated WebPart control.

Namespace:  System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

public override bool ApplyChanges()

Return Value

Type: System.Boolean
true if the action of saving values from the BehaviorEditorPart control to the WebPart control is successful; otherwise (if an error occurs), false.

ExceptionCondition
Exception

An error occurred when trying to set the value for a property on the associated WebPart control.

The ApplyChanges method is a critical method on a BehaviorEditorPart control. The method's purpose is to save the values a user has set on a BehaviorEditorPart control to the corresponding properties in the associated WebPart control. The associated control is referenced in the BehaviorEditorPart control's inherited WebPartToEdit property.

The ApplyChanges method attempts to set a number of user interface (UI)-related property values on the associated WebPart control. For a list of the property values that are set in this method, see the Remarks in the BehaviorEditorPart class overview.

The ApplyChanges method is called when the user clicks an OK verb or an apply verb in the editing UI.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft