ErrorWebPart.EndLoadPersonalization Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets several important properties on the ErrorWebPart control prior to rendering, to prevent users from being able to personalize the control.
protected:
virtual void EndLoadPersonalization();
protected virtual void EndLoadPersonalization ();
abstract member EndLoadPersonalization : unit -> unit
override this.EndLoadPersonalization : unit -> unit
Protected Overridable Sub EndLoadPersonalization ()
Remarks
The EndLoadPersonalization method sets properties on an ErrorWebPart control before it is rendered. These properties prevent users from hiding, minimizing, editing, or exporting the control, or changing its ChromeState value. However, users can close or delete an ErrorWebPart control instance.
Notes to Inheritors
This method can be overridden in an inherited ErrorWebPart control. Developers might want to override the method to set additional properties on the control, such as a default ErrorMessage property value.
To require the WebPartManager control to use a custom ErrorWebPart control, you must also inherit from the WebPartManager class and override its CreateErrorWebPart(String, String, String, String, String) method. In that method, you should assign the value of the method's errorMessage
parameter to the ErrorMessage property of your custom ErrorWebPart control, because the WebPartManager control calls this method from several other places, and usually passes in a specific error message.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om