ErrorWebPart.RenderContents(HtmlTextWriter) 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.
Encodes the string value of the ErrorMessage property.
protected public:
override void RenderContents(System::Web::UI::HtmlTextWriter ^ writer);
protected internal override void RenderContents (System.Web.UI.HtmlTextWriter writer);
override this.RenderContents : System.Web.UI.HtmlTextWriter -> unit
Protected Friend Overrides Sub RenderContents (writer As HtmlTextWriter)
Parameters
- writer
- HtmlTextWriter
An HtmlTextWriter that encodes the error message.
Remarks
The RenderContents method encodes the string assigned to the ErrorMessage property to ensure that it renders properly, and to protect against script injection attacks.
Applies to
See also
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.